-
Notifications
You must be signed in to change notification settings - Fork 2
#pragma
Marcus edited this page Oct 14, 2015
·
5 revisions
The #pragma
directive is akin to an xml processing instruction in that it is to be interpreted by the parser or caller thereof.
$$#pragma string /$$
- May be empty: yes
- May be nested: no
Here string
can be any string that can be interpreted by the parser or caller. This can be done by hooking the PragmaSeen
event of the TemplateParser
and then parse the given string.
The file processor (provided in the Jefferson.FileProcessing
) supports the dontprocess
pragma which directs the processor not to perform any processing on a given file, e.g.
<!-- $$#pragma dontprocess /$$ -->
<root>
<foo name="$$bar$$" />
</root>