added tagcloud
This commit is contained in:
@@ -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}}
|
||||
Reference in New Issue
Block a user