翻訳と辞書
Words near each other
・ "O" Is for Outlaw
・ "O"-Jung.Ban.Hap.
・ "Ode-to-Napoleon" hexachord
・ "Oh Yeah!" Live
・ "Our Contemporary" regional art exhibition (Leningrad, 1975)
・ "P" Is for Peril
・ "Pimpernel" Smith
・ "Polish death camp" controversy
・ "Pro knigi" ("About books")
・ "Prosopa" Greek Television Awards
・ "Pussy Cats" Starring the Walkmen
・ "Q" Is for Quarry
・ "R" Is for Ricochet
・ "R" The King (2016 film)
・ "Rags" Ragland
・ ! (album)
・ ! (disambiguation)
・ !!
・ !!!
・ !!! (album)
・ !!Destroy-Oh-Boy!!
・ !Action Pact!
・ !Arriba! La Pachanga
・ !Hero
・ !Hero (album)
・ !Kung language
・ !Oka Tokat
・ !PAUS3
・ !T.O.O.H.!
・ !Women Art Revolution


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Jinja2 : ウィキペディア英語版
Jinja (template engine)

Jinja is a template engine for the Python programming language and is licensed under a BSD License. It is similar to the Django template engine but provides Python-like expressions while ensuring that the templates are evaluated in a sandbox. It is a text-based template language and thus can be used to generate any markup as well as sourcecode.
The Jinja template engine allows customization of tags,〔(【引用サイトリンク】 website=Jinja2 Documentation (2.8-dev) )〕 filters, tests, and globals.〔(【引用サイトリンク】 website=Jinja2 Documentation (2.8-dev) )〕 Also, unlike the Django template engine, Jinja allows the template designer to call functions with arguments on objects.
Jinja is Flask's default template engine.
==Features==
Some of the features of Jinja are:〔http://jinja.pocoo.org/docs/dev/3 〕
* sandboxed execution
* powerful automatic HTML escaping to prevent cross-site scripting (XSS) attacks
* 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
Jinja, like Smarty, also ships with an easy-to-use filter system similar to the Unix pipeline.
== Example ==
Here is a small example of a template:

from jinja2 import Template
tmpl = Template(u\







,



)
print tmpl.render(
variable = 'Value with data',
item_list = (2, 3, 4, 5, 6 )
)

This produces the HTML:




Value with <unsafe> data


1,
2,
3,
4,
5,
6




抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Jinja (template engine)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.