วันอาทิตย์ที่ 19 มีนาคม พ.ศ. 2560

Turbogears 2 used kajiki template (xhtml to html)

I used Turbogears 2.4 and update to Turbogears 2.8 (Default kajiki template). I want to change Genshi to Kajiki template. I found than I change html to xhtml for kajiki templates. So I don't change It. I search Turbogears Document, In development.ini file 

#config change default extension of kajiki(.xhtml) to .html
templating.kajiki.template_extension = .html


and change base_config.renderes in  app_cfg.py

# Set the default renderer
base_config.renderers.append('kajiki')
# Set the default renderer
base_config.default_renderer = 'kajiki'


But It's not easy, In HTML file I want to change kajiki format. I read it http://turbogears.readthedocs.io/en/latest/turbogears/kajiki-xml-templates.html 

1 ความคิดเห็น:

  1. How to make money in casino games in your pocket | Work On
    How to make money in casino games in your pocket. | Learn the basics of betting on slot machines and งานออนไลน์ slot machines. The more you learn about the

    ตอบลบ

Turbogears 2.3 on Heroku

Turbogears 2.3 on Heroku Step 1 : Install waitress pip install waitress Step 2 : Install turbogears app gearbox quickstart myproturb...