mustache-sql
hipster-style SQL template
install
npm install --save mustache-sql
example
let render = let template = 'UPDATE foobar SET {{property}} WHERE id = {{id}}'let parameter = id: 1 property: foo: 'bar' num: 314 // UPDATE foobar SET `foo` = 'bar', `num` = 3.14 WHERE id = 1
features
{{valu}}
and{{{key}}}
are escaped by node-mysql- partials