badeast.blogg.se

Jade html compiler
Jade html compiler





There is a special syntax for conditional attributes. the object containing Name, LastName etc fields.) you can use $ variable p $.Nameįor conditional blocks, it is possible to use if divĪgain, it is possible to use arithmetic and boolean operators div If you need to access the supplied data itself (i.e. It is possible to define dynamic variables within templates,Īll variables must start with a $ character and can be assigned as in the following example: div Templates, err := jade.CompileDir("./templates", jade.DefaultDirOptions, jade.Options

jade html compiler

This project is a part of the Floki Web applicationįramework but can be easily used in a separate application.

jade html compiler

Most features are supported, except for javascript expressions.Ĭode is based on the Amber project.







Jade html compiler