<?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"
	>
<channel>
	<title>Comments on: Enabling Implicit Context Variables Resolution in Template Files</title>
	<atom:link href="http://blogs.jetbrains.com/idea/2009/08/enabling-implicit-context-variables-resolution-in-template-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.jetbrains.com/idea/2009/08/enabling-implicit-context-variables-resolution-in-template-files/</link>
	<description>tips &#38; tricks, news, how-to's</description>
	<pubDate>Wed, 16 May 2012 21:16:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Tom Davies</title>
		<link>http://blogs.jetbrains.com/idea/2009/08/enabling-implicit-context-variables-resolution-in-template-files/#comment-205731</link>
		<dc:creator>Tom Davies</dc:creator>
		<pubDate>Fri, 25 Nov 2011 01:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=1484#comment-205731</guid>
		<description>Any way of doing this for macro parameters, i.e.

#* @vtlvariable name="page" type="xxx" *#
#macro (foo $page)
 $page.attribute &#60;--- get's a grey squiggly :-(
 ...</description>
		<content:encoded><![CDATA[<p>Any way of doing this for macro parameters, i.e.</p>
<p>#* @vtlvariable name=&#8221;page&#8221; type=&#8221;xxx&#8221; *#<br />
#macro (foo $page)<br />
 $page.attribute &lt;&#8212; get&#8217;s a grey squiggly <img src='http://blogs.jetbrains.com/idea/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
 &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Merrill</title>
		<link>http://blogs.jetbrains.com/idea/2009/08/enabling-implicit-context-variables-resolution-in-template-files/#comment-139173</link>
		<dc:creator>Dave Merrill</dc:creator>
		<pubDate>Wed, 28 Jul 2010 14:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=1484#comment-139173</guid>
		<description>Is there any way to do something like this outside of Velocity? I work on a large ColdFusion app with a lot of static functions loaded into server space, and called like this:
 Server.MyApp.UDF.util.someFunction();
 Server.MyApp.UDF.xml.someFunction();
There are thousands of references like this in our code that a) are all flagged as unresolved, and b) don't provide argument hints.
The path segments at the 'util' and 'xml' level above correspond to physical cfm or cfc files, and I'd really like some way to tell IDEA on a project- or module-wide basis that to resolve this:
 Server.MyApp.UDF.xml
...it should look for the function here:
 /ProjectRoot/udf/util.cfm</description>
		<content:encoded><![CDATA[<p>Is there any way to do something like this outside of Velocity? I work on a large ColdFusion app with a lot of static functions loaded into server space, and called like this:<br />
 Server.MyApp.UDF.util.someFunction();<br />
 Server.MyApp.UDF.xml.someFunction();<br />
There are thousands of references like this in our code that a) are all flagged as unresolved, and b) don&#8217;t provide argument hints.<br />
The path segments at the &#8216;util&#8217; and &#8216;xml&#8217; level above correspond to physical cfm or cfc files, and I&#8217;d really like some way to tell IDEA on a project- or module-wide basis that to resolve this:<br />
 Server.MyApp.UDF.xml<br />
&#8230;it should look for the function here:<br />
 /ProjectRoot/udf/util.cfm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A. Adrian</title>
		<link>http://blogs.jetbrains.com/idea/2009/08/enabling-implicit-context-variables-resolution-in-template-files/#comment-114126</link>
		<dc:creator>A. Adrian</dc:creator>
		<pubDate>Sat, 08 Aug 2009 09:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=1484#comment-114126</guid>
		<description>While variable resolution is a must for usable Velocity support, polluting the template files with such comments is not the best idea IMHO.
Different frameworks(that use velocity) will use different methods to fill the context with variables (and for many of them the variable "tree" can be huge).
I think a much better and general approach would be to let the user set in the Velocity Facet a sort of "template variable provider" class.
For this "template variable provider", one approach could be similar to a "JDBC driver" (and would not depend on IntelliJ), that each framework (that needs Velocity) could implement (in a much simpler way than making an IntelliJ plug-in right now).</description>
		<content:encoded><![CDATA[<p>While variable resolution is a must for usable Velocity support, polluting the template files with such comments is not the best idea IMHO.<br />
Different frameworks(that use velocity) will use different methods to fill the context with variables (and for many of them the variable &#8220;tree&#8221; can be huge).<br />
I think a much better and general approach would be to let the user set in the Velocity Facet a sort of &#8220;template variable provider&#8221; class.<br />
For this &#8220;template variable provider&#8221;, one approach could be similar to a &#8220;JDBC driver&#8221; (and would not depend on IntelliJ), that each framework (that needs Velocity) could implement (in a much simpler way than making an IntelliJ plug-in right now).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

