<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Script injection and StringTemplate</title>
	<atom:link href="http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/</link>
	<description>The writings of John Snyders, mostly about software.</description>
	<lastBuildDate>Thu, 13 Oct 2011 15:18:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bill</title>
		<link>http://hardlikesoftware.com/weblog/2008/02/15/script-injection-and-stringtemplate/comment-page-1/#comment-7495</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 04 Jul 2008 18:15:58 +0000</pubDate>
		<guid isPermaLink="false">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&#039;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&#039;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 &#8211; 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>
</channel>
</rss>

