Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. Jinja2

Golang Template Inheritance (Python Jinja2 extends & include)

February 05, 2017

Template inheritance via Go html/template package. Show how one tempalate extends from another, and also include templates, just as how we do by Python Jinja2.

 read more »

[Pelican] Localize Theme via Jinja2 Custom Filter

January 12, 2017

Pelican static site generator - Localize theme with i18n_subsites plugin via custom Jinja2 filter. Implementation of gettext-like filter.

 read more »

[Pelican] Get Partial Pages or Articles in Theme

January 10, 2017

Pelican static site generator - Get partial pages or articles with specific metadata by Jinja2 built-in selectattr filter in theme.

 read more »

[Pelican] Get Single Page or Article by slug Metadata in Theme

January 08, 2017

Pelican static site generator - Get a single page or article by slug metadata in theme.

 read more »

[Pelican] Translate String According to Default Language in Theme

January 07, 2017

Pelican static site generator - Support multilingual in Pelican theme. Translate strings according to default language of settings in the theme. (implement macro gettext)

 read more »

Pelican Add Buddhist Calendar

February 23, 2016

Pelican static site generator - add Buddhist calendar in your theme.

 read more »

Pelican Generate index.html by reStructuredText or Markdown

February 19, 2016

Pelican static site generator - Generate index.html by writing reStructuredText or Markdown.

 read more »

i18n Python Web Application by gettext and Jinja2

January 17, 2016

i18n (Internationalization) Python web applications by GNU gettext tools and Jinja2. Use PO and MO files generated by gettext in Python web application to render HTML of specific languages by Jinja2 template engine.

 read more »

Internationalization and Localization of Google App Engine Python Webapp Using webapp2 and Jinja2

April 12, 2015

i18n and L10n of Google App Engine Python web application, with webapp2, Jinja2, Babel, and pytz.

 read more »

Golang html/template versus Python Jinja2 (7) - Custom Functions and Filters

March 12, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Go template custom function vs Jinja2 custom filter and function.

 read more »

Golang html/template versus Python Jinja2 (6) - Template Inheritance (Extends)

March 08, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Mimic Jinja2 template inheritance in Go html/template

 read more »

Golang html/template versus Python Jinja2 (5) - Maps and Dictionaries

March 07, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Loop through Python Dictionaries vs Go Maps

 read more »

Golang html/template versus Python Jinja2 (4) - Arrays and Slices Index

March 06, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices - Loop Index

 read more »

Golang html/template versus Python Jinja2 (3) - Arrays and Slices

March 05, 2015 (Updated: March 06, 2015)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices

 read more »

Golang html/template versus Python Jinja2 (2)

February 24, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - print Hello World! on screen

 read more »

Golang html/template versus Python Jinja2 (1)

February 21, 2015 (Updated: March 06, 2015)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Load and Serve Templates

 read more »
Powered by Github Pages, Pelican, pyScss.