Official Content

GeneXus includes a general-purpose Template Engine that is used to create patterns.

The template language is inspired by ASP.NET, and consists of a set of template directives and tags mixed with the template content. When working with templates, you will need to use the GeneXus object model so as to obtain information about the GeneXus Knowledge Base.

Some template directives must be located in the template header, before the template content, while others can be included in the content. The header directives are:

In the template body, you can use the following directives:

Also, a set of tags can be used in the template body:

         <%-- This is a comment --%>
                 <%= %>
              <%  %>
                  <script runat=”template”>


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant