template-tal
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 分类:问答PHPTAL replace but keep certain attributes?
Is it possible to do a tal:replace=\"whatever\" but maintain certain attributes of the element/tag? For example, if you have the following:[详细]
2023-03-29 15:17 分类:问答Using tal:content and getting <br/>
I am using Zend Framework with PHPTAL templates for view sites.开发者_运维百科 Problem is that I have <span> that contains tal:content = value. Value is the field (string) from database which c[详细]
2023-03-26 22:33 分类:问答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 分类:问答PHPTAL and CSV in array
I have data in CSV format: $result->names = array(array(\'x,y,z\'),array(\'a,b,c\')); for example: item.names = \'a,b,c\'[详细]
2023-03-08 15:02 分类:问答What's wrong with my PHPTAL syntax?
.Quick question - I have the following, working syntax: <td tal:define=\"owner record/owner_id; user user/id; mode php:(owner eq user)?\'_edit\':\'_view\'; linkname php:(owner eq user)?\'Edit\':\'[详细]
2023-03-05 03:22 分类:问答When to use nocall on my tal:condition?
I know that for performance it\'s good practice to use nocall on a <tal:condition> in order to avoid calling an object. Would appreciate (links to) a bit of background as this sounds a little va[详细]
2023-02-21 17:08 分类:问答How to correctly include javascript code in chameleon/zpt template (pyramid)?
I\'m trying to embed some code between <script> </script> tags, pyramid however doesn\'t like it and gives me[详细]
2023-02-14 07:18 分类:问答