<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <link>http://mikewatkins.ca/tags/django/</link>
  <atom:link href="http://mikewatkins.ca/tags/django/feeds/rss" type="application/rss+xml" rel="self"/>
  <lastBuildDate>Wed, 14 Nov 2007 23:42:01 GMT</lastBuildDate>
  <title>mike watkins dot ca</title>
  <description>XML Feed for mike watkins dot ca</description>
  <language>en</language>
  <generator>Parlez/0.1</generator>
<item>
  <title>Django gets auto-escape</title>
  <link>http://mikewatkins.ca/2007/11/14/django-auto-escape/</link>
  <description><![CDATA[
<div class="document">
<p>According to <a class="reference" href="http://simonwillison.net/2007/Nov/14/changeset/">Simon Willison</a>, Django now has <a class="reference" href="http://code.djangoproject.com/changeset/6671">auto-escaping</a> of variable contents within templates. Good job.</p>
<p>I wouldn't even consider using a framework that didn't provide some sort of sane system for auto-quoting that which has not already been explicitly declared as safe. Both <a class="reference" href="http://www.mems-exchange.org/software/quixote/">Quixote</a> and <a class="reference" href="http://www.mems-exchange.org/software/qp/">QP</a> have had this feature for many years.</p>
<p>Quixote's PTL template approach gained this capability circa 2002; QP's <a class="reference" href="http://www.mems-exchange.org/software/qpy/">QPY</a>, which is a very close cousin to PTL but decoupled from the web framework itself, has always had this ability.</p>
<p>In October 2003 one of Quixote's original authors, <a class="reference" href="http://arctrix.com/nas/">Neil Schemenauer</a>, put forward <a class="reference" href="http://mail.mems-exchange.org/durusmail/quixote-users/811/">a proposal</a> that ultimately led to the implementation of a <em>sane</em> auto-quoting behaviour in PTL templates.  (See also his <a class="reference" href="http://arctrix.com/nas/talks/htmltext.pdf">PyCon 2003 talk</a>)</p>
<p>In the fall of 2005 <a class="reference" href="http://www.mems-exchange.org/software/qp/">QP</a> - a slightly more opinionated version of Quixote - was born of the same development shop, along with <a class="reference" href="http://www.mems-exchange.org/software/qpy/">QPY</a>, an unbundling of the PTL concept with string-like classes that make it easy to work with, virtually interchangeably, quote-aware and plain str / unicode objects.</p>
<p>QPY's smart string-like classes could be used by any templating system or web framework that hasn't solved this problem already.</p>
</div>

]]></description>
  <guid isPermaLink="false">tag:mikewatkins.ca,2007-10-10:journal:mw:entry:486</guid>
  <pubDate>Wed, 14 Nov 2007 23:42:01 GMT</pubDate>
</item>
</channel></rss>