Class Templating :: TemplateInclusionTag
A template tag which causes another template file to be instantiated using the same variables as the current one.
Examples:
{% include foo/bar %}
{% include "../foo/bar.html" %}
<% include foo/bar %>
{{!< foo/bar }}
{{> foo/bar }}
Import path
import javascript
Direct supertypes
Indirect supertypes
Fields
Predicates
getImportedFile |
Gets the file referenced by this inclusion tag. |
getPath |
Gets the imported path (normalized). |
Inherited predicates
asDataFlowNode |
Gets a data flow node representing the value plugged into this placeholder. |
from TemplatePlaceholderTag |
getAPrimaryQlClass |
Gets the primary QL class for the Locatable. |
from Locatable |
getEnclosingExpr |
Gets the innermost JavaScript expression containing this template tag, if any. |
from TemplatePlaceholderTag |
getEndLine |
Gets the line on which this element ends. |
from Locatable |
getFile |
Gets the file this program element comes from. |
from Locatable |
getInnerTopLevel |
Gets the top-level containing the template expression to be inserted at this placeholder. |
from TemplatePlaceholderTag |
getLocation |
Gets this element’s location. |
from TemplatePlaceholderTag |
getNumLines |
Gets the number of lines covered by this element. |
from Locatable |
getParent |
Gets the enclosing HTML element, attribute, or file. |
from TemplatePlaceholderTag |
getPrimaryQlClasses |
Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. |
from Locatable |
getRawText |
Gets the full text of the template tag, including delimiters. |
from TemplatePlaceholderTag |
getStartLine |
Gets the line on which this element starts. |
from Locatable |
isEscapingInterpolation |
Holds if this performs HTML escaping on the result before inserting it in the template. |
from TemplatePlaceholderTag |
isInCodeAttribute |
Holds if this occurs in an attribute value that is interepted as JavaScript. |
from TemplatePlaceholderTag |
isInCodeContext |
Holds if this placeholder occurs in JS code. |
from TemplatePlaceholderTag |
isInNestedTemplateContext |
Holds if this placeholder occurs in the definition of another template, which means the output is susceptible to code injection. |
from TemplatePlaceholderTag |
isInScriptTag |
Holds if this occurs in a |
from TemplatePlaceholderTag |
isRawInterpolation |
Holds if this performs raw interpolation, that is, inserts its result in the output without escaping it. |
from TemplatePlaceholderTag |
toString |
Gets a textual representation of this element. |
from TemplatePlaceholderTag |