Skip to main content

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

Metadata

Release files for xaml 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xaml 0.6.5
File Size Uploaded
xaml-0.6.5.tar.gz 36.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for xaml 0.6.5
File Interpreter ABI Platform
xaml-0.6.5-py3-none-any.whl Python 3 none any Details
xaml-0.6.5-py2-none-any.whl Python 2 none any Details

Total release size: 85.3 kB

Release files / xaml-0.6.5.tar.gz

Download URL xaml-0.6.5.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eed72cf6367caa48363f270bb568e8f0dd84a9426124ca7f2fb065a32153425e
BLAKE2b-256 checksum
How to use checksums
f04a3dcc5df10319ecb39e0de97b3913992a01612dea6cbd1dcfde1b9cbd1470
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / xaml-0.6.5-py3-none-any.whl

Download URL xaml-0.6.5-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc519a0c7303345d7bef4441feb47a9d11f4528a2c95a0bbb3c03cb20415245d
BLAKE2b-256 checksum
How to use checksums
4b4da3976422f3a98ae6bca07c95b2cca9d1c558a115425ed7cc55fa3c68e472
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / xaml-0.6.5-py2-none-any.whl

Download URL xaml-0.6.5-py2-none-any.whl
Size 24.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
7d201db7024aad2b851c64d8dbd36cc448e990b6e669c4e76d2f8fa063053e41
BLAKE2b-256 checksum
How to use checksums
42fc0b8b77a4154a466e5766526c99e3c329413622d9f91416a901738d8297cb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.6.5 This release

3 release files

0.6.4

3 release files

0.6.3

3 release files

0.6.2

3 release files

0.6.1

3 release files

0.6.0

4 release files

0.5.7

4 release files

0.5.6

3 release files

0.5.5

3 release files

0.5.4

3 release files

0.5.3

3 release files

0.5.2

3 release files

0.5.1

3 release files

0.5.0

3 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.05

2 release files

0.3.04

2 release files

0.2.00

2 release files

0.1.09

2 release files

0.1.08

2 release files

0.1.07

2 release files

0.1.06

2 release files

0.1.04

2 release files

0.1.03

2 release files

0.1.02

2 release files

0.1.01

2 release files

0.1.00

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page