-
Notifications
You must be signed in to change notification settings - Fork 23
Changelog
The XML-configuration has changed.
Before:
<?xml version="1.0" encoding="utf-8" ?>
<site>
<data>
<Title>Graze</Title>
...
<extra>
<Markdown ...>
After:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<site>
<Title>Graze</Title>
...
<Markdown ...>
The XML-configuration has changed. Before, the site's structure was defined just under the root "site" tag. Now, it has been pushed one more level down, to site/data.
Before:
<?xml version="1.0" encoding="utf-8" ?> <site> <Title>Graze</Title> ...
After:
<?xml version="1.0" encoding="utf-8" ?> <site> <data> <Title>Graze</Title> ...
Before, every element in configuration presented one structure in site template. The 2.0.0 version adds a support for enchanters which can add more complex structures in to the site's template. The current version supports Markdown enchanter and it can be used through the configuration:
<extra>
<Markdown Location="pages/help.md">Help</Markdown>
</extra>
This structure can be accessed through the template like the other structures: @Model.Help. This will render the Markdown from the file help.md as HTML.
The HTML generated by Graze isn't escaped anymore. This is to allow the template to use more complex structures like Markdown pages more easily.