deanlaw / cfcgenerator

Automatically exported from code.google.com/p/cfcgenerator
8 stars 6 forks source link

Cannot output percent sign in CFML templating #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Cannot output the percent sign (%) in CFML templating. 

Perhaps, inserting two percent signs in a row (%%) will generate a single
percent sign in the CFML output. This behavior would be similar to using
two hash marks (##) in CFML.

Or perhaps some sort of escape character similar to that in regex.

Here's an example line of code from a SQL query file template, where I
tried to force the generation of the % by using CHR(), but it simply got
converted to a hash mark:
#root.bean.dbtable.xmlChildren[i].xmlAttributes.name# LIKE
'#CHR(37)#%var.search_term%#CHR(37)#'

Original issue reported on code.google.com by avaniut...@gmail.com on 7 Nov 2007 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by brian.ri...@gmail.com on 7 Nov 2007 at 4:02