Python template engine

前端 未结 3 553
旧时难觅i
旧时难觅i 2020-12-30 14:39

Could it be possible if somebody could help me get started in writing a python template engine? I\'m new to python and as I learn the language I\'ve managed to write a littl

3条回答
  •  没有蜡笔的小新
    2020-12-30 15:46

    well, as you said you are a python rookie, and the ONLY reason you are writting a new MVC framework and template engine from scratch, is for learning purposes, you should not care about performance IMHO.

    But if you decide to put something in production, you should consider using already existent template engines, such as jinja2, mako, genshi and so on.

    Anyway if you want to play around, there is a nice example of lightweight web python framework at: http://github.com/breily/juno

    and lightspeed template engine at http://github.com/eklitzke/spitfire

    happy hacking!

提交回复
热议问题