Sha256: 686ad8a8a8095efeb5909bf50ccbf61aba2795849e8b17abd6e8bf7760893639

Contents?: true

Size: 1.12 KB

Versions: 8

Compression:

Stored size: 1.12 KB

Contents

---
title: Webgen::ContentProcessor::Haml
---
## Description

This processor converts the content, which is assumed to be in the Haml markup language, to valid
XHTML by using the Haml library. For detailed information about Haml have a look at the [Haml
Homepage][1]!

You can use some special objects provided by webgen in your Haml markup. These are the same objects
that are available to the `erb` processor, have a look at its [documentation page]({relocatable:
erb.html}).

> This extension is only available if you have installed the [haml][1] library. The preferred way to
> do this is via Rubygems:
>
>     gem install haml
{.exclamation}


## Example

Here is a short sample of a text in Haml markup:

    %h1#myid This a h1 header

    %p
      You can just write
      %b your
      paragraphs here and
      %a{:href => 'http://someurl.com'} link
      them below. This is a
      %strong nice
      format!

    %blockquote.information
      Citations are easy too.
      Really. And you can assign them attributes.

    %ul
      %li Lists
      %li aren't
      %li difficult
      %li either.


[1]: http://haml.hamptoncatlin.com/

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 doc/contentprocessor/haml.page
gettalong-webgen-0.5.5.20081001 doc/contentprocessor/haml.page
gettalong-webgen-0.5.5.20081010 doc/contentprocessor/haml.page
gettalong-webgen-0.5.5.20081012 doc/contentprocessor/haml.page
gettalong-webgen-0.5.6.20081020 doc/contentprocessor/haml.page
webgen-0.5.4 doc/contentprocessor/haml.page
webgen-0.5.5 doc/contentprocessor/haml.page
webgen-0.5.6 doc/contentprocessor/haml.page