<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Script injection and StringTemplate</title>
	<link>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/</link>
	<description>The writings of John Snyders, mostly about software.</description>
	<pubDate>Fri, 25 Jul 2008 05:26:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Bill</title>
		<link>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/#comment-7495</link>
		<author>Bill</author>
		<pubDate>Fri, 04 Jul 2008 18:15:58 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/#comment-7495</guid>
					<description>I wrote a JavaScript implementation of Stringtemplate.  I decided to do it a bit differently than the Java implementation in that the antlr component isn't written in JavaScript.  Instead, I wrote a set of templates (in Stringtemplate of course) that take a template group, plus a list of templates to include as input, and produce an JavaScript representation (in what is basically JSON notation) of those templates as a JavaScript file that can be included directly.  This makes it quite a bit smaller and faster than a full implementation, as well as only taking me about a week to write (including a unit test for every supported template type).  You are welcome to download/use the code - unfortunately, I needed a few fixes to Stringtemplate, so it includes a complete Stringtemplate.  The svn checkout would be:
svn co http://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/xero-util/trunk/stringtemplate stringtemplate

I have submitted the changes back for the core components, but it doesn't look like they have been incorporated yet.  If/when that is done, I will remove all the stringtemplate duplicated code and directly use a published stringtemplate library.</description>
		<content:encoded><![CDATA[<p>I wrote a JavaScript implementation of Stringtemplate.  I decided to do it a bit differently than the Java implementation in that the antlr component isn&#8217;t written in JavaScript.  Instead, I wrote a set of templates (in Stringtemplate of course) that take a template group, plus a list of templates to include as input, and produce an JavaScript representation (in what is basically JSON notation) of those templates as a JavaScript file that can be included directly.  This makes it quite a bit smaller and faster than a full implementation, as well as only taking me about a week to write (including a unit test for every supported template type).  You are welcome to download/use the code - unfortunately, I needed a few fixes to Stringtemplate, so it includes a complete Stringtemplate.  The svn checkout would be:<br />
svn co <a href="http://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/xero-util/trunk/stringtemplate" rel="nofollow">http://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/xero-util/trunk/stringtemplate</a> stringtemplate</p>
<p>I have submitted the changes back for the core components, but it doesn&#8217;t look like they have been incorporated yet.  If/when that is done, I will remove all the stringtemplate duplicated code and directly use a published stringtemplate library.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Private Jets</title>
		<link>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/#comment-7997</link>
		<author>Private Jets</author>
		<pubDate>Thu, 24 Jul 2008 00:17:44 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/#comment-7997</guid>
					<description>&lt;strong&gt;Private Jets...&lt;/strong&gt;

Specialising in Aircraft Charter, Aircraft Management and Aircraft Sales....</description>
		<content:encoded><![CDATA[<p><strong>Private Jets&#8230;</strong></p>
<p>Specialising in Aircraft Charter, Aircraft Management and Aircraft Sales&#8230;.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
