lest

low entropy system for templating

Introduction

Lest simplifies the tedious work of writing web pages by removing unnecessary clutter. So instead of <span>Hello World</span> you write span "Hello World".

Why not just span Hello World? Indentation is nice thing but shouldn't be enforced. Marking strings as strings instead of relying on newlines is better solution in long term.

Every tag may have unique ID and one or more classes:

Tags can contain text or other tags:

Some tags know what to expect.

These are basics. All HTML5 tags work like this. If they don't please report them.

Simple templates

Simple templates are easy.

Dynamic code

Values

Conditions

IF

IF  

EITHER

EITHER   

SWITCH

SWITCH   opt [DEFAULT ]

CASE

CASE opt ALL 

Loops

Bootstrap examples

Panel

panel [
	h4 "Simple panel"
	p "asdf"
]

Simple panel

panel [
	h4 "Simple panel"
	precode panel-source
]

Container, row and col

ahoj