turbogears


Using kajiki in TG2.1


the recently released turbogears 2.1 mentioned about the support of kajiki, a genshi-like templating engine, but i cant find any resource on how to get started to use tg2.1 with kajiki. any ideas?
I enabled Kajiki in a TG 2.1 project by changing the <projectname>/config/app_cfg.py file.
After the line
base_config.renderers.append('genshi')
just add
base_config.renderers.append('kajiki')
You can later use a Kajiki template from any of your actions by decorating it with something like
#expose('kajiki:projectname.templates.sometemplate')
You can also set Kajiki as the default template language by changing the base_config.default_renderer assignment in app_cfg.py. If you do this, you won't need the kajiki: prefix when decorating, e.g.,
#expose('projectname.templates.sometemplate')
will suffice.
After this works for you, changing setup.py to add a Kajiki dependency is probably all you need in order to have a working project. The only thing I haven't tried as yet is i18n; I'll probably update this answer when I do.

Related Links

Turbogears 2.3.10 error kajiki template with pluggable application
Exposing an HTTP proxy through a Turbogears controller
Using kajiki in TG2.1
embed multiple kid template files into a main one

Categories

HOME
sendgrid
google-chrome-extension
multithreading
fluentd
dictionary
reserved
platform-builder
youtube-dl
jsp-tags
at-command
malloc
mvvmcross
slurm
nano-server
numeral.js
etl
phaser
hapi
iolanguage
pythonanywhere
ab-testing
viewport
nas
kryo
jasonette
csrf-protection
qhull
fifo
spring-mybatis
xacml
ejabberd-module
atlassian-crucible
nouislider
binary-data
perlin-noise
form-data
io-redirection
hockeyapp
mesos-chronos
eigenvalue
gpx
scrollable
azure-application-gateway
filepicker
upstart
jedis
jquery-validate
tizen-native-app
tropo
magma
windows-mobile-6.5
flow-control
setuptools
wdf
gridpane
adxstudio-portals
django-debug-toolbar
bstr
bgp
apachebench
associative-array
freedesktop.org
ruby-2.2
coveralls
drawbitmap
dundas
angular-local-storage
pretty-print
formatjs
typekit
wordpress-theme-customize
socketexception
navigationservice
valueconverter
dealloc
oracle-warehouse-builder
cloud-connect
quantlib-swig
google-cloud-save
web2py-modules
ril
back-stack
frameset
wse3.0
qtkit
pydot
cinema-4d
remember-me
site.master
cxxtest
.nettiers
eqatec

Resources

Encrypt Message