Modding Jinja

Jinja is a template language that lets you plug variables and such into an HTML page.

What it looks like
{# I'm a comment #} {% for nipple in nipples %} {% if nipple.damageLevel > 3 %} NIPPLE CRISIS:  {% endif %} {% endfor %}

Adding to a page with blocks
This is the preferred way to edit Fleshcult's HTML because different mods can add stuff to the same pages without replacing each other's work.

Every page in Fleshcult is split into a series of named blocks: {% block heading %} ... {% endblock %}

These provide landmarks which let you specify where in the page your mod content should go. An easy way to find out what you should name your block filename is to open the page in developer tools and look for comments near where you want to add that say something like:

Displaying variables
Here's a list of variables you can use:
 * strx. The string transformer.

Find out more

 * Reference documentation
 * https://jinja.palletsprojects.com/en/2.11.x/templates/