本文介绍了带有Google App Engine的Mako模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用带有GAE的Mako模板,而不是Django模板.我发现了该帖子 http://blog.pansapiens.com/2008/06/24/mako-templates-in-google-app-engine-seems-to-work-for-me/

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/

我使用easy_install http://www.makotemplates.org/download从此页面下载了Mako.html

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

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

我不知道该怎么办.

有人可以帮助我,以便我按照博客的指示将"Mako"文件放入我的GAE目录中.

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

我在此处 Google App Engine-动态创建的模板中看到了对Mako/GAE的引用

谢谢.

推荐答案

我在App Engine上使用了Mako.对我来说很好.

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

我要做的就是直接下载 mako,然后将mako模块目录放在我的应用根目录.

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

这篇关于带有Google App Engine的Mako模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 06:06