XSLT is a very powerful tool, but using it can be painful ... even with zencoding .
Roughly I need coffeescript for xslt, something that will compile, for example
template test
params = {:foo => 'foo', :bar => 1}
<p>$foo, $bar</p>
end
call test :foo => 'oof', :bar => 2
at
<xsl:call-template name="test">
<xsl:with-param select="'oof'" name="foo"></xsl:with-param>
<xsl:with-param select="2" name="bar"></xsl:with-param>
</xsl:call-template>
<xsl:template name="test">
<xsl:param select="'foo'" name="foo" />
<xsl:param select="1" name="bar" />
<p><xsl:value-of select="$foo" />, <xsl:value-of select="$bar" /></p>
</xsl:template>
or something...
source
share