Skip to content

Commit

Permalink
Changed Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Nov 29, 2011
1 parent 2bbee86 commit 5e70473
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,55 @@ Adjust your "your_project/__init__.py" and add the following line somewhere to i
Syntax
======

The same as the Jade Node.js module
The same as the Jade Node.js module (except of no commas on attributes)
https://github.com/visionmedia/jade/blob/master/Readme.md

Example
-------

This code::

!!! 5
html(lang="en")
head
title= pageTitle
script(type='text/javascript')
if (foo) {
bar()
}
body
h1.title Jade - node template engine
#container
if youAreUsingJade
p You are amazing
else
p Get on it!


Converts to::

<!DOCTYPE html>
<html lang="en">
<head>
<title>{{pageTitle}}</title>
<script type='text/javascript'>
if (foo) {
bar()
}
</script>
</head>
<body>
<h1 class="title">Jade - node template engine</h1>
<div id="container">
{%if youAreUsingJade%}
<p>You are amazing</p>
{%else%}
<p>Get on it!</p>
{%endif%}
</div>
</body>
</html>


TODOs and BUGS
==============
Expand Down

0 comments on commit 5e70473

Please sign in to comment.