我有几个小的(五六百行模板代码)Django站点,我想将它们迁移到使用JJAA2…但是我想了解一下要做多少工作.那么,一般来说,将一个小的Django站点迁移到JJIA2大约需要做多少工作呢?这是否"值得"呢?
我有几个小的(五六百行模板代码)Django站点,我想将它们迁移到使用JJAA2…但是我想了解一下要做多少工作.那么,一般来说,将一个小的Django站点迁移到JJIA2大约需要做多少工作呢?这是否"值得"呢?
虽然这只是我自己的经验,但我发现从Django转换到JJIA2是值得的,原因如下:
If you haven't had any trouble with Django's template engine, Jinja2's should feel relatively intuitive, if perhaps a bit more polished (or it did to me, at any rate). As well, I found the Coffin
project well written and reasonably helpful when converting from Django to Jinja2 – both for its use, and as an example of how to extend Jinja2.
尽管如此,Django的模板引擎是可靠的,可以完成大多数任务.我相信它会在Django的下一个版本中得到改进,并且有相当多的专职开发人员会付出相当大的努力来增加它的功能.因此,不用担心它在中短期内会得不到支持.
Again, that's just my experience, for what it's worth – I hope that's helpful.