mako
Mako or Jinja2? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2023-01-10 22:11 分类:问答How do I get some string values from Pylons controller be assigned to JavaScript variables with Mako?
I\'m developing under Pylons using Mako templates. The problem is that I need to assign a string from some attribute of tmpl_context to a JavaScript variable in a page body. The additional problem is[详细]
2023-01-09 14:20 分类:问答Template tags like Django with Mako and Pylons
For my site need some \"widgets\" that elaborate output from vario开发者_开发知识库us data models, because this widgets are visible in any page is possible with mako to retrieve the data without pass[详细]
2023-01-04 15:51 分类:问答Better error reporting mako
Is there a way to add tempate string which contains error t开发者_高级运维o mako`s error trace?I don\'t think you\'re likely to find such a thing.Like all the other fast python template engines, Mako[详细]
2023-01-01 04:04 分类:问答Conditional operator in Mako using Pylons
In PHP, I often use the conditional operator to add an attribute to an html element if it applies to the element in question. For example:[详细]
2022-12-31 19:57 分类:问答Mako templates inline if statement
I have a template variable, c.is_friend, that I would like to use to determine whether or not a class is applied.For example:[详细]
2022-12-31 10:41 分类:问答Mako "Missing parentheses in %def"
In trying to add a cached section to a Mako template, I get the erro开发者_JAVA百科r listed in the above question. Adding () to the end gets rid of the error, but I see no content on my page. Any help[详细]
2022-12-28 12:21 分类:问答Mako template depending on object class?
whats a clean开发者_Go百科 way to use different templates depending on an object class?other than buncha if statementsYou can make a dict, call it type2templ, with types (i.e., classes) as the keys, a[详细]
2022-12-28 05:33 分类:问答How can I configure vim syntax highlighting for mako templates?
I\'d l开发者_运维问答ike to get the HTML elements highlighted as well as the MAKO / Python elements.[详细]
2022-12-26 03:08 分类:问答What should I use - Mako or Django?
I\'m making a website that mail users when a movie or a pc game has released. It isn开发者_StackOverflow\'t too complex - users can sign up, choose movies/music or a genre and save the settings. When[详细]
2022-12-25 15:27 分类:问答