-
Notifications
You must be signed in to change notification settings - Fork 2
#pragma
Marcus edited this page Oct 28, 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.
For more info see Pragmas.
The file processor (provided in the Jefferson.FileProcessing
) supports the dontprocess
and once
pragmas which directs the processor not to perform any processing on a given file, e.g.
<!-- $$#pragma dontprocess /$$ -->
<root>
<foo name="$$bar$$" />
</root>
<!-- $$#pragma once /$$ -->
<root>
$$#literal$$
Output $$ here. $$ foo $$ is not evaluated.
$$/literal$$
</root>