<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Templating Toolkit on ScipioERP</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/</link><description>Recent content in Templating Toolkit on ScipioERP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 11 Nov 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://www.scipioerp.com/community/developer/freemarker-macros/index.xml" rel="self" type="application/rss+xml"/><item><title>Grid</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlstructure/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlstructure/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlStructure.ftl&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class="shot"&gt;
 &lt;div class="shot__bar"&gt;
 &lt;span class="window__dot window__dot--live"&gt;&lt;/span&gt;
 &lt;span class="window__dot"&gt;&lt;/span&gt;
 &lt;span class="window__dot"&gt;&lt;/span&gt;
 &lt;span class="shot__path"&gt;Grid column layout documentation&lt;/span&gt;
 &lt;/div&gt;
 &lt;a class="shot__open" href="https://www.scipioerp.com/wp-content/uploads/2016/05/grid-1024x141.png" target="_blank" rel="noopener" aria-label="Open the screenshot at full size"&gt;&lt;picture&gt;
 &lt;source type="image/webp" srcset="https://www.scipioerp.com/uploads/2016/05/grid-1024x141_hu_571482fa01271835.webp 1000w" sizes="(max-width: 1080px) 92vw, 1000px"&gt;
 &lt;img src="https://www.scipioerp.com/wp-content/uploads/2016/05/grid-1024x141.png" alt="Grid column layout documentation"
 width="1024" height="141"
 loading="lazy" decoding="async"&gt;
 &lt;/picture&gt;&lt;/a&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Displaying content within a (flexible) grid is a way of structuring content on a website.
The grid itself works as a layer on top of the basic html structure. Everything visible is grouped inside
columns and individual cells. The SCIPIO framework uses the standard 12 column grid that is used by
modern CSS frameworks, such as foundation or bootstrap.&lt;/p&gt;</description></item><item><title>Content Elements</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlcontent/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlcontent/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlContent.ftl&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The SCIPIO framework comes with a set of standard content elements. The elements are largely based on standard
html elements so the transition should be straight forward. Since all macros also standardize the html patterns,
it is recommended to rely on the SCIPIO tag alternatives for all html. All macros start with “&amp;lt;@”, so tags can
be converted by adding an @ in front of them.&lt;/p&gt;
&lt;p&gt;The SCIPIO content elements add new options that can be added as attributes. For example, whereas &amp;lt;&lt;a href="#entry-table"&gt;@table&lt;/a&gt;
&amp;gt; will create a
default table, &amp;lt;@table responsive=true&amp;gt; will generate the very same with added resizing for smaller devices.
The available options and their respective use are outlined by this document.&lt;/p&gt;</description></item><item><title>Information &amp; Notifications</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlinfo/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlinfo/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlInfo.ftl&lt;/em&gt;The information and notification elements can be used to define content that should catch the users attention,
such as modals, panels and alerts.&lt;/p&gt;
&lt;p&gt;Included by htmlTemplate.ftl.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTES:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;May have implicit dependencies on other parts of Scipio API.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="definitions"&gt;Definitions:&lt;a class="heading-anchor" href="#definitions" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;&lt;a href="#entry-alert"&gt;alert&lt;/a&gt;
,
&lt;a href="#entry-commonMsg"&gt;commonMsg&lt;/a&gt;
,
&lt;a href="#entry-modal"&gt;modal&lt;/a&gt;
,
&lt;a href="#entry-panel"&gt;panel&lt;/a&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id="modal"&gt;Modal&lt;a class="heading-anchor" href="#modal" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;h4 id="macro-modal"&gt;macro &lt;code&gt;modal&lt;/code&gt;&lt;a class="heading-anchor" href="#macro-modal" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;Creates a modal UI element.&lt;/p&gt;
&lt;p&gt;&lt;figure class="shot"&gt;
 &lt;div class="shot__bar"&gt;
 &lt;span class="window__dot window__dot--live"&gt;&lt;/span&gt;
 &lt;span class="window__dot"&gt;&lt;/span&gt;
 &lt;span class="window__dot"&gt;&lt;/span&gt;
 &lt;span class="shot__path"&gt;Modal dialog macro documentation example&lt;/span&gt;
 &lt;/div&gt;
 &lt;a class="shot__open" href="https://www.scipioerp.com/wp-content/uploads/2016/05/modal.png" target="_blank" rel="noopener" aria-label="Open the screenshot at full size"&gt;&lt;picture&gt;
 &lt;source type="image/webp" srcset="https://www.scipioerp.com/uploads/2016/05/modal_hu_c5c92d90e340fa30.webp 1000w" sizes="(max-width: 1080px) 92vw, 1000px"&gt;
 &lt;img src="https://www.scipioerp.com/wp-content/uploads/2016/05/modal.png" alt="Modal dialog macro documentation example"
 width="1187" height="321"
 loading="lazy" decoding="async"&gt;
 &lt;/picture&gt;&lt;/a&gt;
&lt;/figure&gt;&lt;/p&gt;</description></item><item><title>Form Elements</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlform/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlform/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlForm.ftl&lt;/em&gt;In the same fashion as the content elements, SCIPIO form elements are meant as a mean to standardize
the development of complexe forms. The elements follow standard html patterns, with the only difference
being the &lt;a href="#entry-field"&gt;@field&lt;/a&gt;
 attribute replacing the input tag.&lt;/p&gt;
&lt;p&gt;All elements come with additional options, that simplifies their use quite a bit. A good example are the
&amp;lt;@field definitions, where each element are wrapped in containing rows and cells, labels added when defined
and ids set automatically. The use of the SCIPIO elements largely simplify the creation of complexe forms and
standardize the html output for visualization.&lt;/p&gt;</description></item><item><title>Navigation &amp; Menus</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlnav/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlnav/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlNav.ftl&lt;/em&gt;Navigational elements that can be used to generate complexe menus, pagination controls or other
navigation elements (magelan, step elements, breadcrumbs or alike). The usage should be largely simplified
by the elements provided.&lt;/p&gt;
&lt;p&gt;Included by htmlTemplate.ftl.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTES:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;May have implicit dependencies on other parts of Scipio API.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="definitions"&gt;Definitions:&lt;a class="heading-anchor" href="#definitions" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;&lt;a href="#entry-cmsmenu"&gt;cmsmenu&lt;/a&gt;
,
&lt;a href="#entry-isMenuMarkupItemsInline"&gt;isMenuMarkupItemsInline&lt;/a&gt;
,
&lt;a href="#entry-makeMagTargetAttribMap"&gt;makeMagTargetAttribMap&lt;/a&gt;
,
&lt;a href="#entry-menu"&gt;menu&lt;/a&gt;
,
&lt;a href="#entry-menuitem"&gt;menuitem&lt;/a&gt;
,
&lt;a href="#entry-mli"&gt;mli&lt;/a&gt;
,
&lt;a href="#entry-mtarget"&gt;mtarget&lt;/a&gt;
,
&lt;a href="#entry-nav"&gt;nav&lt;/a&gt;
,
&lt;a href="#entry-paginate"&gt;paginate&lt;/a&gt;
,
&lt;a href="#entry-step"&gt;step&lt;/a&gt;
,
&lt;a href="#entry-treeitem"&gt;treeitem&lt;/a&gt;
,
&lt;a href="#entry-treemenu"&gt;treemenu&lt;/a&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id="nav-list"&gt;Nav List&lt;a class="heading-anchor" href="#nav-list" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;h4 id="macro-nav"&gt;macro &lt;code&gt;nav&lt;/code&gt;&lt;a class="heading-anchor" href="#macro-nav" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;Creates a navigation list, for example based on magellan-destination or breadcrumbs.&lt;/p&gt;</description></item><item><title>HTML &amp; Script Wrappers</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmlscript/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmlscript/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlScript.ftl&lt;/em&gt;Wrapping HTML, such as the boiler plate html head content or the javascript definition tags have been
enhanced in order to strip templates from unneccessary information. Additional options are available
for each element.&lt;/p&gt;
&lt;p&gt;Included by htmlTemplate.ftl.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTES:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;May have implicit dependencies on other parts of Scipio API.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="definitions"&gt;Definitions:&lt;a class="heading-anchor" href="#definitions" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;&lt;a href="#entry-commonElemAttribStr"&gt;commonElemAttribStr&lt;/a&gt;
,
&lt;a href="#entry-commonElemEventAttribStr"&gt;commonElemEventAttribStr&lt;/a&gt;
,
&lt;a href="#entry-htmlHeadOpen"&gt;htmlHeadOpen&lt;/a&gt;
,
&lt;a href="#entry-requireScriptOfbizUrl"&gt;requireScriptOfbizUrl&lt;/a&gt;
,
&lt;a href="#entry-script"&gt;script&lt;/a&gt;
,
&lt;a href="#entry-scripts"&gt;scripts&lt;/a&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id="html-head-open"&gt;HTML Head Open&lt;a class="heading-anchor" href="#html-head-open" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;h4 id="macro-htmlheadopen"&gt;macro &lt;code&gt;htmlHeadOpen&lt;/code&gt;&lt;a class="heading-anchor" href="#macro-htmlheadopen" aria-label="Link to this section"&gt;#&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;Opens an HTML document and header section.&lt;/p&gt;</description></item><item><title>Utility Functions</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/utilities/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/utilities/</guid><description>&lt;p&gt;&lt;em&gt;utilities.ftl&lt;/em&gt;A set of standalone utility functions and macros, largely devoid of markup and
independent from templating macros and styles and with minimal dependencies,
part of standard Scipio Freemarker API.
Generally CSS-framework-agnostic.
Intended as platform-agnostic (html, fo, etc.) though some individually are only applicable for specific platforms.
Automatically included at all times, for all themes, independently of theme markup override files.&lt;strong&gt;NOTES:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Macros expect to be called using named arguments, except where otherwise noted.&lt;/p&gt;</description></item><item><title>Template includes</title><link>https://www.scipioerp.com/community/developer/freemarker-macros/htmltemplate/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://www.scipioerp.com/community/developer/freemarker-macros/htmltemplate/</guid><description>&lt;p&gt;&lt;em&gt;standard/htmlTemplate.ftl&lt;/em&gt;A set of HTML templating macros, part of the standard Scipio Templating Toolkit
for Freemarker language (&lt;a href="https://freemarker.apache.org/docs/" class="link-external" rel="noopener"&gt;https://freemarker.apache.org/docs/&lt;/a&gt;
) – master include.
Automatically included at all times, unless overridden by properties or themes.
Intended to be swappable.
Includes all other default Scipio standard markup macros.&lt;/p&gt;
&lt;p&gt;Alongside this master include exists a global variables and styles definition file,
&lt;code&gt;htmlVariables.groovy&lt;/code&gt;, which defines global styles used by most macros and utilities
(currently has no HTML documentation – mostly relevant to theme writers – see source).&lt;/p&gt;</description></item></channel></rss>