gerclear.blogg.se

Pug template alter
Pug template alter







pug template alter

However, it is possible to recreate such functionalities in a third-party module via Flamingo's template functions.įor example pug_template itself has a substitute for the JavaScript Math library with the min, max and ceil functions.

pug template alter

Only snippets of JavaScript code can be run. While this works for most standard statements and language constructs (default data types such as maps, list, etc), it does not support certain things such as Object Oriented Programming or the JavaScript standard library. The pug_template module takes this JavaScript and uses the Go-based JS engine, otto, to parse the JavaScript and transpile it into Go code. var prefix = 'foo _ ' ul each val, index in Module `flamingo-carotene-smooth-scroll-to`









Pug template alter