GithubHelp home page GithubHelp logo

kryndex / jinja Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pallets/jinja

0.0 2.0 0.0 4.27 MB

The Jinja2 template engine

Home Page: http://jinja.pocoo.org/

License: Other

Makefile 0.05% Vim Script 0.45% Python 98.98% HTML 0.14% Emacs Lisp 0.38%

jinja's Introduction

Jinja2

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Nutshell

Here a small example of a Jinja template:

{% extends 'base.html' %}
{% block title %}Memberlist{% endblock %}
{% block content %}
  <ul>
  {% for user in users %}
    <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  {% endfor %}
  </ul>
{% endblock %}

Philosophy

Application logic is for the controller, but don't make the template designer's life difficult by restricting functionality too much.

For more information visit the new Jinja2 webpage and documentation.

The Jinja2 tip is installable via pip with pip install https://github.com/pallets/jinja/zipball/master.

Builds

master image
2.9-maintenance image

jinja's People

Contributors

mitsuhiko avatar untitaker avatar birkenfeld avatar tux21b avatar thiefmaster avatar kristi avatar jeffwidman avatar lukasa avatar snoack avatar thomaswaldmann avatar steelywing avatar lkarthee avatar davidism avatar berkerpeksag avatar rduplain avatar plaes avatar msabramo avatar lakinwecker avatar kschuetz avatar yole avatar mgax avatar drewja avatar florentx avatar jdufresne avatar ronnypfannschmidt avatar yoloseem avatar jfinkels avatar pgjones avatar kracekumar avatar fengsp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.