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.

Source Distribution

xaml-0.6.5.tar.gz (36.3 kB view details)

Uploaded Source

Built Distributions

xaml-0.6.5-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

xaml-0.6.5-py2-none-any.whl (24.5 kB view details)

Uploaded Python 2

File details

Details for the file xaml-0.6.5.tar.gz.

File metadata

  • Download URL: xaml-0.6.5.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15rc1

File hashes

Hashes for xaml-0.6.5.tar.gz
Algorithm Hash digest
SHA256 eed72cf6367caa48363f270bb568e8f0dd84a9426124ca7f2fb065a32153425e
MD5 65a6d28601ed8d0db9a5af24d575e8c7
BLAKE2b-256 f04a3dcc5df10319ecb39e0de97b3913992a01612dea6cbd1dcfde1b9cbd1470

See more details on using hashes here.

File details

Details for the file xaml-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: xaml-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15rc1

File hashes

Hashes for xaml-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc519a0c7303345d7bef4441feb47a9d11f4528a2c95a0bbb3c03cb20415245d
MD5 d0ff8bd0c8c27fcd20429e8c4db3180b
BLAKE2b-256 4b4da3976422f3a98ae6bca07c95b2cca9d1c558a115425ed7cc55fa3c68e472

See more details on using hashes here.

File details

Details for the file xaml-0.6.5-py2-none-any.whl.

File metadata

  • Download URL: xaml-0.6.5-py2-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15rc1

File hashes

Hashes for xaml-0.6.5-py2-none-any.whl
Algorithm Hash digest
SHA256 7d201db7024aad2b851c64d8dbd36cc448e990b6e669c4e76d2f8fa063053e41
MD5 ca3f1fea48a4e5b92f90f070b99c8b83
BLAKE2b-256 42fc0b8b77a4154a466e5766526c99e3c329413622d9f91416a901738d8297cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page