There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |
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") && |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}