23 lines
803 B
Plaintext
23 lines
803 B
Plaintext
<cfsilent></cfsilent>
|
|
<cfset out=""/>
|
|
<cfif thisTag.executionMode IS "end" OR !thisTag.hasEndTag>
|
|
<cfassociate basetag="cf_dependency" datacollection="fields" />
|
|
|
|
<cfparam name="ATTRIBUTES.expression" default=#thisTag.generatedContent#/>
|
|
<cfparam name="ATTRIBUTES.title" default=""/>
|
|
<cfparam name="ATTRIBUTES.name" default=""/>
|
|
|
|
<cfif ATTRIBUTES.name IS "">
|
|
<cfset regex="([[:word:]]+)[[:space:]]*$"/>
|
|
<cfset matches=REFindNoCase(regex, ATTRIBUTES.expression, 1, true)/>
|
|
<cfif arrayLen(matches.pos) GT 1>
|
|
<cfset ATTRIBUTES.name=mid(ATTRIBUTES.expression, matches.pos[2], matches.len[2])/>
|
|
</cfif>
|
|
</cfif>
|
|
|
|
<cfif arrayLen(getBaseTagData("cf_dependency",1).thisTag.fields) GT 1>
|
|
<cfset thisTag.generatedContent=", #thisTag.generatedContent#"/>
|
|
</cfif>
|
|
|
|
</cfif>
|