XML抽象标记语言
xaml的Python项目详细描述
人类编写XML和HTML的一种更简单的方法
如果一行以任何xaml组件(~@)开头。#$)该行表示 XML/HTTP元素:
- an element continues until eol, or an unquoted : - an element can be continued to the next line(s) using unquoted parens
如果一行以“:”开头,则指定以下行应如何 被解释:
- :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
如果一行以//开头,则它是一个注释,并将转换为 XML/HTML注释
如果一行以“-”(连字符)开头,那么这是一行python代码 将运行以帮助生成最终输出
否则,该行表示元素的内容
XAML组件:
- ~ -> 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"/>
基于haml[1],但针对python。
仍处于早期阶段-如果您需要,请发送电子邮件给Stoneleaf Dot的Ethan 想参与进来!
Mercurial Repository、Wiki和Issue Tracker,见[2]。
[1]http://haml.info/ [2]https://bitbucket.org/stoneleaf/xaml