Somebody offered a CSS/Javascript/image minimization library for
WebHelpers, to replace webhelpers.commands.compress_resources(). If
this is you, please send me the library in the next few days or it
will miss the 0.6 release. (I'm not sure if minimization is the
correct term, to compress
Hi,
I am using pylons 0.9.7beta4) and mako.
def xml(self):
c.xml = ...
response.headers['Content-Type'] = 'application/xml'
return render('/xml.mak')
xml.mak:
?xml version=1.0 encoding=utf-8 ?
customer id=customer
${c.xml}
/customer
The XML file appear ...
customer
Are you wanting to display the XML raw like this:
${c.xml | x}
On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu [EMAIL PROTECTED] wrote:
Hi,
I am using pylons 0.9.7beta4) and mako.
def xml(self):
c.xml = ...
response.headers['Content-Type'] = 'application/xml'
return
Page Source
?xml version=1.0 encoding=utf-8 ?
customer id=customer
lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk
id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot;
1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot;
name=quot;Pylons 15quot;/gt;lt;kk
For me, using pylons 0.9.6.1 and Mako-0.1.10
${c.xml} - gives blank page, with source like this:
customer id=customerkk id=1012 name=Pylons 12/kk id=1013
name=Pylons 13/kkid=1014 name=Pylons 14/kk id=1015
name=Pylons 15/kkid=1016 name=Pylons 16/kk id=1017
name=Pylons 17/kkid=1018 name=Pylons
On Apr 15, 2008, at 6:29 AM, Alagu Madhu wrote:
?xml version=1.0 encoding=utf-8 ?
customer id=customer
${c.xml}
/customer
Pylons 0.9.7 has HTML auto-escaping of variables. If you do not want a
variable escaped, you can turn off the filter like so:
${c.xml | n}
Or, you can wrap your
So that replaces the HTML escaping done previously in Mako:
http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression
I must have missed the 'n' switch after looking over this doc:
http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779
Are there other new switches like
As posted here:
http://wiki.pylonshq.com/display/pylonscommunity/Pylons+contract+position
I represent a team of two successful entrepreneurs building a consumer-
focused user-generated travel guide site. We have an alpha of the
product built in Pylons, and need to find a contract developer to
In environment.py line 33 should be commented like this:
# Create the Mako TemplateLookup, with the default auto-escaping
config['pylons.app_globals'].mako_lookup = TemplateLookup(
directories=paths['templates'], input_encoding='utf-8',
imports=['from webhelpers.html
Augusto Becciu wrote:
Thanks Ian, this works great!
Just two little issues:
1) appengine-boot.py fails to copy development.ini.template, I had to
rename it to development.ini.
This should be fixed in trunk.
2) The Pylons appengine-monkey tutorial should metion somewhere that
in order
On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R [EMAIL PROTECTED] wrote:
So that replaces the HTML escaping done previously in Mako:
http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression
I must have missed the 'n' switch after looking over this doc:
Thank you very much everybody.
${c.xml | n}
and
from webhelpers.html import literal
def xml(self):
c.xml = literal()
working fine.
On Apr 15, 9:15 pm, Mike Orr [EMAIL PROTECTED] wrote:
On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R [EMAIL PROTECTED] wrote:
So that
12 matches
Mail list logo