Skip to content

sukey/sukey-website-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:
============
Builds the website from django templates and language files.
Uses the django template system to create static files for the website. This
allows easy inclusion of common content, but removes the need for (e.g.) PHP
includes that don't really do anything dynamic.


Build Requirements:
===================
-Python 2.6 (or above): http://www.python.org/getit/
-Django: http://www.djangoproject.com/download/
-Apache (or another http server): http://www.apache.org/dyn/closer.cgi

Build Instructions:
===================
You can build the website for all languages, by doing:
$ python build-website.py $(sh all-langs.sh)

.djt Template Code Examples
===========================
for loop demo
-------------
strings:
{# note: not iteritems(); django does this automatically #}

{% for k, v in strings.iteritems %}
{{k}} = {{v}}
{% endfor %}

accessing "deep" variables directly
-----------------------------------
{{strings.key1}}
{% endblock %}

Known Bugs:
-----------------------------------
jQuery bug stops the FAQ box from expanding
Horrible inline style in certain divs. Any css tweaks welcome :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published