index

Template::HAML

The latest version of this documentation lives at https://gdonald.github.io/Template-HAML/.

The homepage for Template::HAML is https://github.com/gdonald/Template-HAML.

Synopsis

Template::HAML is an HTML Abstraction Markup Language (HAML) implementation for Raku, built on Raku Grammars. HAML lets you write HTML as an indentation-driven outline rather than as a sea of opening and closing tags.

Currently developed against Raku v6.d.

Example

example.haml

%html
  %head
    %title Page Title
  %body
    %section.container
      %h1 Title
      %h2 Subtitle
      %p Content
      %ul
        %li Foo
        %li Bar
use Template::HAML;

my $html = HAML.render(:src(slurp 'example.haml'));
say $html;

Output:

<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <section class='container'>
      <h1>Title</h1>
      <h2>Subtitle</h2>
      <p>Content</p>
      <ul>
        <li>Foo</li>
        <li>Bar</li>
      </ul>
    </section>
  </body>
</html>

Install

Template::HAML can be installed using the zef module installation tool:

zef install Template::HAML

Template::HAML v0.9.5

HAML template engine

Authors

  • Greg Donald

License

Artistic-2.0

Dependencies

Provides

  • Template::HAML
  • Template::HAML::Actions
  • Template::HAML::CLI
  • Template::HAML::Cache
  • Template::HAML::Codegen
  • Template::HAML::Comment
  • Template::HAML::Config
  • Template::HAML::Context
  • Template::HAML::DirectCodegen
  • Template::HAML::DirectEmit
  • Template::HAML::Doctype
  • Template::HAML::Eval
  • Template::HAML::Filter
  • Template::HAML::Filters
  • Template::HAML::Format
  • Template::HAML::Grammar
  • Template::HAML::Helpers
  • Template::HAML::HelpersRole
  • Template::HAML::Interpolation
  • Template::HAML::Lint
  • Template::HAML::Multiline
  • Template::HAML::Node
  • Template::HAML::Plain
  • Template::HAML::Plugin
  • Template::HAML::Renderer
  • Template::HAML::Statement
  • Template::HAML::Tag
  • Template::HAML::TagTransformers
  • Template::HAML::ViewContext
  • Template::HAML::Visitor
  • Template::HAML::Watch
  • Template::HAML::X

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.