Sha256: 73b94dab84f2c5b9707bf8061d148eb1b89e1a82eb78f1bf7a7da6acb8ab1ee0

Contents?: true

Size: 1.12 KB

Versions: 9

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
{.warning}


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

9 entries across 9 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 doc/contentprocessor/haml.page
gettalong-webgen-0.5.8.20090507 doc/contentprocessor/haml.page
gettalong-webgen-0.5.9.20090620 doc/contentprocessor/haml.page
gettalong-webgen-0.5.9.20090626 doc/contentprocessor/haml.page
thewoolleyman-webgen-0.5.8.20090419 doc/contentprocessor/haml.page
webgen-0.5.10 doc/contentprocessor/haml.page
webgen-0.5.9 doc/contentprocessor/haml.page
webgen-0.5.7 doc/contentprocessor/haml.page
webgen-0.5.8 doc/contentprocessor/haml.page