Slim 1.2.0
A concise and lightweight templating language for generating HTML

Slim is a library for generating HTML from concise, lightweight templates. Slim is based on Jade for javascript and Slim for Ruby.

Features include:

  • indentation driven - closing tags not needed
  • CSS shortcut notation for #id and .class attributes
  • ${...} notation to interpolate Fantom code
  • Configurable HTML, XHTML or XML tag endings
  • efan template generation
  • Template nesting with Layout pattern.

.

ALIEN-AID: Turn Slim templates into powerful HTML components with efanXtra!

Read more...

Install

To install Slim with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Slim with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afSlim.pod (66.95 kB)

Use

To use Slim in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afSlim 1.2.0 - 1.2"]

Documentation

Information

Meta information on the Slim pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
66.95 kB
Licence
ISC Licence (ISC)
Built on
9th Apr 2016
Source code
via Mercurial at https://bitbucket.org/AlienFactory/afslim
Depends on
afEfan, afPegger, afPlastic, sys
Referenced by
afBedNap, afEggbox
Javascript Compatible
No

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 20 releases of Slim: