Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jet/templates/xmlEnd.jet')
-rw-r--r--plugins/org.eclipse.jet/templates/xmlEnd.jet13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/templates/xmlEnd.jet b/plugins/org.eclipse.jet/templates/xmlEnd.jet
new file mode 100644
index 0000000..b1c5626
--- /dev/null
+++ b/plugins/org.eclipse.jet/templates/xmlEnd.jet
@@ -0,0 +1,13 @@
+<%@jet class="XMLEndGenerator" %>
+<%@jet imports="org.eclipse.jet.internal.compiler.GenXMLElement"%>
+<%
+ GenXMLElement element = (GenXMLElement) context.getVariable("element"); //$NON-NLS-1$
+%>
+<% if(element.hasBody()) { %>
+<c:get select="$indent"/> <%= element.getTagVariable() %>.handleBodyContent(out);
+<c:get select="$indent"/>}
+<% if(element.requiresNewWriter()) { %>
+<c:get select="$indent"/>out = <%= element.getTagVariable() %>_saved_out;
+<% } %>
+<% } %>
+<c:get select="$indent"/><%= element.getTagVariable() %>.doEnd();

Back to the top