Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Razor engine

Jérémie Bertrand edited this page Jan 24, 2017 · 3 revisions

Razor is one of the supported template engines.

You have an example of the syntax on the default index page, the layout or the rss feed.

Don't hesitate to launch a pretzel create newsite --t=razor and study the files generated.

The filters are used like this:

@Filter.PrettifyUrl(\"http://mysite.com/index.html\")
@Filter.Slugify(\".ASP.NET MVC\")

Config data like this:

@Model.Site.Config["author"]