chameleon
Pyramid and Chameleon ZPT Repetition
I am trying to loop through a list and get an output like this: Python: items=[\'item1\', \'item2\', \'item3\'][详细]
2023-04-10 17:54 分类:问答Referencing a related object in Pyramids/Python/SQLAlchemy
I\'m not sure how to title this question. I\'ve also simplified my code so it\'s easier to ask. Say I have the following code in myproject.models in Pyramid:[详细]
2023-04-06 18:37 分类:问答Chameleon i18n and pluralization
How does pluralization in Chameleon templates? I didn\'t manage to find examples in the documentation.[详细]
2023-04-03 03:07 分类:问答Pyramid i18n and HTML5
Does Pyramid i18n of .pt file开发者_运维技巧s support HTML5 mark-up? Currently the i18n tag extractor (Babel?) seems to want XHTML based input and does not accept HTML5 mark-up. Thus if you want to us[详细]
2023-04-03 03:06 分类:问答Telling Zope/Chameleon to not parse a section?
I have a Pyramid app that uses Chameleon. I need to declare some attributes in my DOCTYPE, like so: <!DOCTYPE public 开发者_运维知识库html .........[详细]
2023-03-27 20:49 分类:问答Loading Macros from Other Template Files in Chameleon
I have a Pyramid app that uses 开发者_Go百科Chameleon for its templates. I would like to create a master template page (say master.pt) that contains several macros that I user throughout the pages of[详细]
2023-03-26 15:53 分类:问答use Chameleon ZPT templates to write out print statements
I am using Pyramid and I know that this is probably not the preferred way to do things but it would be really cool. I have a bunch of Python scripts which print to stdout. Now I want to run these scri[详细]
2023-03-25 15:37 分类:问答Python Pyramid - Add multiple chameleon base templates
I am using this procedure to use a base template which the other templates can derive from.开发者_如何转开发[详细]
2023-03-19 01:17 分类:问答How can I have attributes that get extracted for i18n in ZPT macros?
I\'m using Pyramid with ZPT templates to make a web app. I\'m attempting to make a form template macro library to make life easier for things like setting current values of form fields, etc. I\'m also[详细]
2023-03-13 05:46 分类:问答configuring repoze.bfg to use utf-8 encoding
I\'m using repoze.bfg v1.3 and chameleon v2 (zpt templates). I got tro开发者_高级运维ubles with encoding while rendering template:[详细]
2023-03-08 14:41 分类:问答