Skip to content

Jade Haml like syntax support

RobertTheGrey edited this page May 7, 2012 · 2 revisions

#Jade/Haml like syntax support is available from Spark v1.7.0.0

Spark has begun to support a different kind of syntax called Jade. You can read up more about Jade at http://jade-lang.com/

To start using it, simply add a reference to Spark and start adding *.shade files to your project and as long as Spark is registered as a view engine, then it should automatically attempt Jade parsing to HTML. That of course, means that you can mix and match .spark and .shade files and the parser will work just fine with both of them. You can even create .shade partials that can be consumed by .spark views.

It should be noted that this is only the provisional support and point releases will be made as an when bugs are discovered to work out the kinks. If you find any issues, please don't hesitate to raise them here on github

This feature is very new, but for now you can see an example of Jade syntax usage in these places:

Clone this wiki locally