- ID and CLASS attributes:
div*page.section.main
. - Custom attributes:
div[title]
,a[title="Hello world" rel]
,td[colspan=2]
. - Element multiplication:
li*5
will output<li>
tag five times. - Item numbering with
$
character:li.item$*3
will output<li>
tag three times, replacing$
character with item number. - Multiple
$
characters in a row are used as '''zero padding''', i.e.:li.item$$$
→li.item001
- Abbreviation groups with unlimited nesting:
div*page>(div*header>ul*nav>li*4>a)+(div*page>(h1>span)+p*2)+div*footer
. You can literally write a full document markup with just a single line. *Filters support div tag name can be omitted when writing element starting from ID or CLASS:*content>.section
is the same asdiv*content>div.section
. - (v0.7) Text support:
p>{Click }+a{here}+{ to continue}
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Web.UI; | |
using System.Xml; // requires System.Xml reference | |
using System.Xml.Linq; // requires System.Xml.Linq reference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Language="VBScript" %> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<!--#include file="json.asp"--> | |
<% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<link href="css/bootstrap-responsive.min.css" rel="stylesheet"> | |
<title>Bootstrap >= 2.0.3</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ZenCoding --> | |
(header.page-header>(.top-line>li*5>a)+hgroup>h1+h4)+(section.content>.column>article>img+header.entry-title+(.entry-content>p)+footer.entry-footer>p)*2+(aside>(section.links>li*8>a)+(section.quote>p))+(footer.page-footer>(section.about-author>img+p>a)+(section.page-copyright>p)) | |
<!-- end ZenCoding --> | |
<!-- Manual typing + autocomplete --> | |
<header class="page-header"> | |
<div class="top-line"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var template = '(div[id=menu, class={menu.menuclass}]>ul>li[class={menu.itemclass}, html={title}, map={menu.items}])+(div[class=body]>div[class=content]>p[html={maincontent}])', | |
data = { | |
maincontent: 'foo bar', | |
menu: { | |
menuclass: 'menu', | |
itemclass: 'menu-item', | |
items: [ | |
{ title: 'first entry' }, | |
{ title: 'second entry' }, | |
{ title: 'third entry' }, |