<if type-from-filename></if>
Provided by module: Tags: RXML 2 tags
Compares if the variable contains a path that match the
content type pattern.
This is an Eval plugin.
Related tags: <if#type-from-data>, <cimg>, <guess-content-type>,
<emit#dir>.
See a lengthier example under <if#type-from-data>.
<set variable='var.path' value='/a-path/to somthing/wordfile.doc'/>
<if type-from-filename='var.path is application/msword'>
It is a word document.
</if>
<else>
It is other document type that I do not want.
</else> |
It is a word document.
|
|