Chapter 1: Overview Of Theming In Django Market - StephenPower/Bootstrap-Themes-Summer-2012-Release GitHub Wiki
Django Market Themes were built on OSS (open source software) technology:
- Python
- Jinja2
You probably know what Python is, but may ask what's Jijna2?
Jinja2 is a modern and designer friendly templating language for Python, modelled after Django’s templates. It is fast, widely used and secure with the optional sandboxed template execution environment:
A simple example: `
{% for categories in shop_subcategories %}
<p><a href="/search/?q={{categories.name}}">{{ categories.name }}</a></p>
{% endfor %}
<h5>Quick Navigation</h5>
{% for link in links %}
<p><a href="{{ link.to }}">{{ link.name }}</a></p>
{% endfor %}
`
Features:
- sandboxed execution
- powerful automatic HTML escaping system for XSS prevention
- template inheritance
- compiles down to the optimal python code just in time
- optional ahead of time template compilation
- easy to debug. Line numbers of exceptions directly point to the correct line in the template.
- configurable syntax
Django Market Theming is for designers, developers and shop owners that are familiar with HTML / CSS.