=========
About ZML
=========
Overview
--------
The Zero Markup Language, abbreviated ZML, is a template language to represent hierarchically structured data in conjunction with template logic in an integrated system. Structuring is without wrapping in using indentation (indentation). ZML is designed for a platform- and implementation-independent use. A very lean but powerful syntax is based on glyphs:
::
* Views
+ Models
% Logic
! Translation
# Data
& Metadata
@ Resources
~ Routes
| Slots
< Signal handler
> Signal emitter
" Comment
The language uses a MVS approach. (Model View Signal)
::
%import components
%inherit 2col
*col1_content:
div.panel:
%for user in users:
h1: User
div.card:
%if user.active:
p: {user.firstname}
p: {user.lastname}
p: {user.email}
%else:
p: The user is not active
This ZML template produces the following HTML code:
::
zml
zml - zero markup language
User
Richard
Langly
ringo@l4ngly.org
User
Melvin
Frohike
melvin@frohike1.net
User
John Fitzgerald
Byers
jfb@byers23.org