added tagcloud

This commit is contained in:
Massimo Di Pierro
2011-11-23 01:14:19 -06:00
parent 332c53c5e3
commit e9fadbc40b
132 changed files with 6645 additions and 1 deletions
@@ -0,0 +1,5 @@
{{extend 'layout.html'}}
<h1>BEAUTIFY</h1>
<h2>Message is</h2>
{{=message}}
@@ -0,0 +1,5 @@
{{extend 'layout.html'}}
<h1>Strings are automatically escaped</h1>
<h2>Message is</h2>
{{=message}}
@@ -0,0 +1,7 @@
{{extend 'layout.html'}}
{{def itemlink(name):}}<li>{{=A(name,_href=name)}}</li>{{return}}
<ul>
{{itemlink('http://www.google.com')}}
{{itemlink('http://www.yahoo.com')}}
{{itemlink('http://www.nyt.com')}}
</ul>
@@ -0,0 +1,6 @@
{{extend 'layout.html'}}
<h1>For loop</h1>
{{for number in ['one','two','three']:}}
<h2>{{=number.capitalize()}}</h2>
{{pass}}
@@ -0,0 +1,12 @@
{{extend 'layout.html'}}
<h1>If statement</h1>
{{
a=10
}}
{{if a%2==0:}}
<h2>{{=a}} is even</h2>
{{else:}}
<h2>{{=a}} is odd</h2>
{{pass}}
@@ -0,0 +1,8 @@
{{extend 'layout.html'}}
<h1>Try... except</h1>
{{try:}}
<h2>a={{=1/0}}</h2>
{{except:}}
infinity</h2>
{{pass}}
@@ -0,0 +1,4 @@
{{extend 'layout.html'}}
<h1>Your variables</h1>
<h2>a={{=a}}</h2>
<h2>a={{=b}}</h2>
@@ -0,0 +1,5 @@
{{extend 'layout.html'}}
<h1>XML</h1>
<h2>Message is</h2>
{{=message}}