I work with CFWheels and jquery mobile, and I am trying to pass some jquerymobile settings to linkto call (mainly the data-icon attribute. I have never started this before, but ColdFusion seems to not hyphenate argument names. My call looks like this way:
<cfset contentFor(actioncontent=linkTo(text='Login', route='login', data-icon='check')) />
CFBuilder and Railo throw a hyphen error. Railo Error:
wrong left side assignment (railo.transformer.bytecode.op.OpDouble)
So my questions are: am I saying correctly that hyphens are not allowed in argument names? Also, if they are not allowed, is there a way to get a hyphen through or do I just need to create an anchor tag?
source share