Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

0.6.1

History Node

0.6.0

History Node

0.5.7

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.13

History Node

0.3.12

History Node

0.3.11

History Node

0.3.10

History Node

0.3.9

History Node

0.3.8

History Node

0.3.7

History Node

0.3.06

History Node

0.3.05

History Node

0.3.04

History Node

0.3.03

History Node

0.3.02

History Node

0.3.01

History Node

0.3.00

History Node

0.2.00

History Node

0.1.09

History Node

0.1.08

History Node

0.1.07

History Node

0.1.06

History Node

0.1.04

History Node

0.1.03

History Node

0.1.02

History Node

0.1.01

History Node

0.1.00

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
xaml-0.6.1-py2-none-any.whl
(25.8 kB) Copy SHA256 Hash SHA256
Wheel py2 Aug 28, 2017
xaml-0.6.1-py3-none-any.whl
(25.8 kB) Copy SHA256 Hash SHA256
Wheel py3 Aug 28, 2017
xaml-0.6.1.tar.gz
(34.0 kB) Copy SHA256 Hash SHA256
Source None Aug 28, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting