Skip to main content

XML Abstract Markup Language

Project description

an easier way for humans to write xml and html

if a line starts with any xaml component ( ~ @ . # $ ) that line represents an xml/http element:

- an element continues until eol, or an unquoted :
- an element can be continued to the next line(s) using unquoted parens

if a line starts with a “:” it is specifying how the following lines should be interpreted:

- :css -> cascading style sheets that are inserted with a <style> tag

- :python -> python code inserted into a <script type="text/python"> tag
             (must have a python interpreter running in the browser; e.g.
             Brython (http://brython.info/index.html))

- :javascript -> javascript code inserted into a
                 <script type="text/javascript"> tag

if a line starts with // it is a comment, and will be converted into an xml/html comment

if a line starts with a “-” (hyphen) it is a single line of Python code that will be run to help generate the final output

otherwise the line represents the content of an element

xaml components:

- ~ -> element name
- @ -> name attribute
- . -> class attribute
- # -> id attribute
- $ -> string attribute

  e.g. ~document .bold #doc_1 @AutoBiography $My_Biography ->

  <document class="bold" id="doc_1" name="AutoBiography" string="My Biography"/>

Based on haml [1] but aimed at Python.

Still in its early stages – send email to ethan at stoneleaf dot us if you would like to get involved!

Mercurial repository, wiki, and issue tracker at [2].

[1] http://haml.info/ [2] https://bitbucket.org/stoneleaf/xaml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xaml, version 0.6.5
Filename, size File type Python version Upload date Hashes
Filename, size xaml-0.6.5-py2-none-any.whl (24.5 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size xaml-0.6.5-py3-none-any.whl (24.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size xaml-0.6.5.tar.gz (36.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page