Skip to content
Mikael Koskinen edited this page Feb 27, 2012 · 6 revisions

27.2.2012: Version 4.0.0

Configuration changes

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 ...>

13.2.2012: Version 2.0.0

Configuration changes

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> ...

Support for site structure "enchanters"

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.

HTML not escaped

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.