Skip to main content

XML Abstract Markup Language

Project description

an easier way for humans to write xml

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

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

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

- :markdown -> markdown text (not implemented)
- :css -> css styles (not implemented)

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

elif a line starts with a “-” it is Python code that will be run to help generate the final xml output

else the line represents the content of an xml element

xaml components:

- % -> element name
- @ -> name attribute
- . -> class attribute
- # -> id attribute
- $ -> string attribute (_ to ' ' conversion not implemented)

  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 Distributions

xaml-0.4.2.zip (22.0 kB view details)

Uploaded Source

xaml-0.4.2.tar.gz (19.4 kB view details)

Uploaded Source

File details

Details for the file xaml-0.4.2.zip.

File metadata

  • Download URL: xaml-0.4.2.zip
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xaml-0.4.2.zip
Algorithm Hash digest
SHA256 9279b8006a8c26495b034c8277d90681c212b87c84f871d995ea33f00556deba
MD5 ce4c867df5e0bb3ae74371b924edb2b7
BLAKE2b-256 4a4ff202a8d261d887a27d0c6081b57d10a849bc01132349f9c72f71d60b1bad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xaml-0.4.2.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xaml-0.4.2.tar.gz
Algorithm Hash digest
SHA256 515b0af765958ee47bb2b7104135dbece75a79ae6609b168efeeb18458430598
MD5 b1fabf7acc4da6d8b683d4c90605f6f6
BLAKE2b-256 20a8fb1e268e03e39a8e4453e514fb2b8f1e29550953beab3072a32a5faaeca5

See more details on using hashes here.

Supported by

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