Mako templates with Google App Engine

蓝咒 提交于 2020-01-24 15:57:05

问题


I want to use Mako templates with GAE instead of Django templates. I found this post http://blog.pansapiens.com/2008/06/24/mako-templates-in-google-app-engine-seems-to-work-for-me/

I downloaded Mako from this page by using easy_install http://www.makotemplates.org/download.html

But that gave me a "beaker" file

c:\python26\lib\site-packages\beaker-1.5.4-py2.6.egg

that I don't know what to do with.

Can someone help me so that I can get "Mako" file to put in my GAE directory as instructed in the blog.

I saw the reference to Mako/GAE here Google App Engine--Dynamically created templates

Thank you.


回答1:


I use Mako on App Engine. It works very well for me.

All I do is download mako directly, then place the mako module directory in my app root.



来源:https://stackoverflow.com/questions/3938963/mako-templates-with-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!