XML抽象标记语言
项目描述
使人类编写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。
仍处于早期阶段 - 如果您想参与,请发送电子邮件至ethan at stoneleaf dot us!
Mercurial仓库、wiki和问题跟踪器位于[2]。
[1] https://haml.ruby-lang.org.cn/ [2] https://bitbucket.org/stoneleaf/xaml
项目详情
下载文件
下载适合您平台的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。
源代码分发
xaml-0.6.5.tar.gz (36.3 kB 查看哈希值)
构建分发版
xaml-0.6.5-py3-none-any.whl (24.5 kB 查看哈希值)
xaml-0.6.5-py2-none-any.whl (24.5 kB 查看哈希值)