Sha256: 3bafadf418d43298d6477d96f04ddbb6c0d321afadd6344cbb787d1f282401ff

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

Template languages
==================

Hyde comes with support for some common template languages. This means you can
write your site in a language like Markdown or HAML, and have Hyde take care
of translating them accordingly.

If a file ends in one of Hyde's supported file extensions (like `.haml`), it will be stripped
out and the file will be rendered using the template engine in that extension (in
this case, HAML).

Supported languages
-------------------

Hyde supports the following languages out-of-the-box:

 - HTML template languages
   - `.haml` -- HAML
   - `.md` -- Markdown
   - `.textile` -- Textile
   - `.erb` -- ERB (Embedded Ruby)

 - CSS template languages
   - `.less` -- LessCSS
   - `.sass` -- SASS

This means that the following files will be translated accordingly:

 | products.html.haml       | becomes `products.html` (rendered through HAML)       |
 | control.css.less         | becomes `control.css` (rendered through Less CSS)     |
 | site.xml.erb             | becomes `site.xml` (rendered through Embedded Ruby)   |

Example
-------

When creating a new site, have a look at `index.html.haml`.

...

Headers
-------

...

Layouts
-------

Layouts are supported for these languages.

...

Embedded Ruby features
----------------------

Some languages (like HAML and ERB) has support for embedding Ruby code in the
documents. This will let you do some nifty things in Hyde:

 - Partials
 - Helpers

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydeweb-0.0.5 manual/Introduction/TemplateLanguages.md
hydeweb-0.0.4 manual/Introduction/TemplateLanguages.md