镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was 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"]

Clone this wiki locally