Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
Mako Templates for Python
Conversations
About
Mako Templates for Python
1–30 of 665
Mark all as read
Report abusive group
0 selected
Utkarsh Bhiogade
7/11/22
MAKO rendering taking too much time
Hi All, I've created a MAKO template (~2.5k lines of code) required for some automation. i'm
unread,
MAKO rendering taking too much time
Hi All, I've created a MAKO template (~2.5k lines of code) required for some automation. i'm
7/11/22
Andrey Pochekutov
12/18/21
List of open source projects used mako templates
I wish you all good health! I'm starting to use mako templates, please tell me where i can find
unread,
List of open source projects used mako templates
I wish you all good health! I'm starting to use mako templates, please tell me where i can find
12/18/21
Mike Bayer
, …
Vikas Dubey
4
12/16/20
Re: [Mako] Error : TypeError: 'Undefined' object is not callable
Hi Mike, Thanks for your reply and help. I managed to solve the issue. I found in the old mak
unread,
Re: [Mako] Error : TypeError: 'Undefined' object is not callable
Hi Mike, Thanks for your reply and help. I managed to solve the issue. I found in the old mak
12/16/20
Javi D R
,
Kostiantyn Ivashchenko
2
6/16/20
List of dictionaries - How to render in mako
Hi, in first case try this way: % for d in list_dict: <p>${d['name']} - ${d['
unread,
List of dictionaries - How to render in mako
Hi, in first case try this way: % for d in list_dict: <p>${d['name']} - ${d['
6/16/20
zhengx...@163.com
, …
Mike Bayer
4
3/30/20
Calling user defined function, get unexpected newline ?
you can omit the newlines explicitly: <%def><% %></%def> On Mon, Mar 30, 2020, at 2
unread,
Calling user defined function, get unexpected newline ?
you can omit the newlines explicitly: <%def><% %></%def> On Mon, Mar 30, 2020, at 2
3/30/20
Peter Slížik
,
Mike Bayer
3
3/10/20
Mako shadows the built-in next() function
That explanations dotted the i's and crossed the t's. Thank you a lot!
unread,
Mako shadows the built-in next() function
That explanations dotted the i's and crossed the t's. Thank you a lot!
3/10/20
Sunando Samaddar
,
Jonathan Vanasco
2
1/8/20
CSS, JS not loading in templates
This looks to be a problem with your application's configuration and how your html is referencing
unread,
CSS, JS not loading in templates
This looks to be a problem with your application's configuration and how your html is referencing
1/8/20
Eddie Rowe
,
Mike Bayer
2
7/31/19
mapping HTML::Mason to Mako
On Wed, Jul 31, 2019, at 3:48 PM, Eddie Rowe wrote: I'm a long-time user of HTML::Mason and am
unread,
mapping HTML::Mason to Mako
On Wed, Jul 31, 2019, at 3:48 PM, Eddie Rowe wrote: I'm a long-time user of HTML::Mason and am
7/31/19
Vinay Pasupuleti
7/30/19
Is it possible to replace a variable inside html object passed from python method with existing mako variable
Lets say: Variable "fragment" is passed to "makotemp.html" fragment is a html
unread,
Is it possible to replace a variable inside html object passed from python method with existing mako variable
Lets say: Variable "fragment" is passed to "makotemp.html" fragment is a html
7/30/19
Graeme Gemmill
1/17/19
Re: [Mako] Re: Modulus operator inside Mako template
Walter Jaisli/DianeWellman/MikeBayer: Thanks for your useful/informative coments. I have other places
unread,
Re: [Mako] Re: Modulus operator inside Mako template
Walter Jaisli/DianeWellman/MikeBayer: Thanks for your useful/informative coments. I have other places
1/17/19
Graeme Gemmill
, …
Mike Bayer
6
1/16/19
Modulo operator inside Mako template
On Wed, Jan 16, 2019 at 3:18 PM Diane Wellman <di...@beautylish.com> wrote: > > Hello
unread,
Modulo operator inside Mako template
On Wed, Jan 16, 2019 at 3:18 PM Diane Wellman <di...@beautylish.com> wrote: > > Hello
1/16/19
Ake Tang
10/31/18
Render error tag ${form} with Django 2.1.2 , but work fine with Django 2.0.8
Hi Members, Do u find an error such stack below? It work fine with Django 2.0.8 but until upgrade to
unread,
Render error tag ${form} with Django 2.1.2 , but work fine with Django 2.0.8
Hi Members, Do u find an error such stack below? It work fine with Django 2.0.8 but until upgrade to
10/31/18
Nabil Khoury
,
Mike Bayer
6
9/23/18
Lexer node hierarchy
In case someone else might stumble upon a similar use-case. Here's one way to reconstitute the
unread,
Lexer node hierarchy
In case someone else might stumble upon a similar use-case. Here's one way to reconstitute the
9/23/18
Daniel Flick
4/18/18
Stuck on splitting up a variable in a template
The following works on a Python command line CELLULAR='1.2.3.4' OCTETS=CELLULAR_IP.split(
unread,
Stuck on splitting up a variable in a template
The following works on a Python command line CELLULAR='1.2.3.4' OCTETS=CELLULAR_IP.split(
4/18/18
Paul Baumer
,
Mike Bayer
2
11/24/17
Empty lines in generated files
you can put a backslash at the end of a line to suppress trailing whitespace: http://docs.
unread,
Empty lines in generated files
you can put a backslash at the end of a line to suppress trailing whitespace: http://docs.
11/24/17
Daniel Flick
, …
Jonathan Vanasco
11
11/8/17
For loop using counter and array within in the loop
I have a lot to learn! So searching through stackoverflow, I see ways to do this but it does look
unread,
For loop using counter and array within in the loop
I have a lot to learn! So searching through stackoverflow, I see ways to do this but it does look
11/8/17
Daniel Flick
,
Jonathan Vanasco
13
10/30/17
Trying to process IP addresses in a template using ipaddress. Can't seem to reference them.
Worked like a champ! I am back in business. There is still so much to learn! Thanks again, Daniel
unread,
Trying to process IP addresses in a template using ipaddress. Can't seem to reference them.
Worked like a champ! I am back in business. There is still so much to learn! Thanks again, Daniel
10/30/17
Gour
, …
Jonathan Vanasco
6
9/11/17
Mako vs Jinja2
I use both libraries regularly. In terms of static site generators: they're both comparably fast
unread,
Mako vs Jinja2
I use both libraries regularly. In terms of static site generators: they're both comparably fast
9/11/17
Alexander Krause
,
mike bayer
3
4/26/17
access templates from within a zip (via zipfile module?)
I've uploaded my progress to github: https://github.com/erazor83/mako_zip Examples are there and
unread,
access templates from within a zip (via zipfile module?)
I've uploaded my progress to github: https://github.com/erazor83/mako_zip Examples are there and
4/26/17
patto
, …
Arnaud Hebert
7
4/13/17
How to access variables in python blocks(<% %>) in named block(<%block name="myblock">)?
Thanks Chris! You helped me resolve my issue.
unread,
How to access variables in python blocks(<% %>) in named block(<%block name="myblock">)?
Thanks Chris! You helped me resolve my issue.
4/13/17
Jinghui Niu
,
mike bayer
4
2/21/17
how to get a layered context.namespaces.values()?
meta templating means you are doing something like this: % for ns in context.namespaces.values(): ${
unread,
how to get a layered context.namespaces.values()?
meta templating means you are doing something like this: % for ns in context.namespaces.values(): ${
2/21/17
Дмитрий Архипов
,
mike bayer
3
2/17/17
How to call an imported function with embedded content?
Ok, thanks. четверг, 16 февраля 2017 г., 17:25:08 UTC+3 пользователь mike bayer написал: On 02/15/
unread,
How to call an imported function with embedded content?
Ok, thanks. четверг, 16 февраля 2017 г., 17:25:08 UTC+3 пользователь mike bayer написал: On 02/15/
2/17/17
Jonathan Vanasco
,
mike bayer
3
12/7/16
escape newline filter?
On Wednesday, December 7, 2016 at 10:35:38 AM UTC-5, mike bayer wrote: you mean to render a backslash
unread,
escape newline filter?
On Wednesday, December 7, 2016 at 10:35:38 AM UTC-5, mike bayer wrote: you mean to render a backslash
12/7/16
Juan A. S.
,
mike bayer
2
8/12/16
Escape or change comments format
Mako is not that extensible but you can add a preprocessor that search-and-replaces for "##
unread,
Escape or change comments format
Mako is not that extensible but you can add a preprocessor that search-and-replaces for "##
8/12/16
Jinghui Niu
,
Jonathan Vanasco
3
7/15/16
filters.html_escape default to single quote, while double quote is what JSON requires?
Thanks Jonathan. That solves my problem and helps clarify my understanding of that data structure.
unread,
filters.html_escape default to single quote, while double quote is what JSON requires?
Thanks Jonathan. That solves my problem and helps clarify my understanding of that data structure.
7/15/16
Ben Thompson
,
Jonathan Vanasco
2
6/29/16
Include all whitespace?
I don't believe there is, but at the end of each file that mako generates is a source mapping as
unread,
Include all whitespace?
I don't believe there is, but at the end of each file that mako generates is a source mapping as
6/29/16
entwi...@gmail.com
5/30/16
When I use <%page/> and also inherit another template I can no longer overwrite the default args
I want <%page/> to set the default value of a variable, but if I also inherit another template
unread,
When I use <%page/> and also inherit another template I can no longer overwrite the default args
I want <%page/> to set the default value of a variable, but if I also inherit another template
5/30/16
Andrew Pashkin
, …
Jonathan Vanasco
7
4/23/16
Include with context
If you can make a self-contained example (the .py + 2 .mako; attached or on github's gist) I can
unread,
Include with context
If you can make a self-contained example (the .py + 2 .mako; attached or on github's gist) I can
4/23/16
Jinghui Niu
,
Jonathan Vanasco
3
3/26/16
how to do some backward modifying
Make just renders text/html; jquery does DOM manipulation. You need to write another "if"
unread,
how to do some backward modifying
Make just renders text/html; jquery does DOM manipulation. You need to write another "if"
3/26/16
Srikanth Bemineni
, …
Jonathan Vanasco
11
3/21/16
Examples of passing dictionary
ah,. It turns out this is known bug that is not likely to be addressed (this would require a lot of
unread,
Examples of passing dictionary
ah,. It turns out this is known bug that is not likely to be addressed (this would require a lot of
3/21/16