The module on npm exposes the pdfmake Printer, which the docs themselves do not cover. Using it is pretty simple though.
var path = require('path');
var Printer = require('pdfmake');
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
function isElement(obj) { | |
try { | |
//Using W3 DOM2 (works for FF, Opera and Chrom) | |
return obj instanceof HTMLElement; | |
} | |
catch(e){ | |
//Browsers not supporting W3 DOM2 don't have HTMLElement and | |
//an exception is thrown and we end up here. Testing some | |
//properties that all elements have. (works on IE7) | |
return (typeof obj==="object") && |
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |