Package ch.tocco.nice2.templating.impl.freemarker.directives
package ch.tocco.nice2.templating.impl.freemarker.directives
-
ClassesClassDescriptionthis is used to generate a barcode from a string value parameters required - type - the type of barcode to create, Code128 is used if empty - value - the value to generate the code for - height - the height of the code - width - the width of the single bars - drawText - should the value be drawn beneath the codeTemplate Directive to load the IP address of the client by use of
RequestContext.Directive to format a value for rendering to a csv output file.Deprecated.Use methods of date beans directly (i.e.Template Directive to check if a value exists Compares the value with the emptyValue of his type If the type can't be evaluated, only checks if the value isn't nullDeprecated.UseQueryDirectivein combination withListDirectiveA directive that iterates over aTemplateSequenceModel.Directive forFreemarkerEngineto load a collection of entities from within a template.Includes a font as '@font-face' CSS.Includes Google Fonts in your CSS.Deprecated.use freemarker syntax directly (e.g.Directive forFreemarkerEngineto add days to a date.executes a query using the path query builder parameters: name: name of the variable paths: string, comma seperated list of paths to be loaded limit: optional, number, limit for the query returns a List of Maps that can be accessed similarly to an EntityListSequenceModel example: [@pathQuery name="memberships" paths="relSingle_user.firstname,relSingle_user.lastname,relSingle_user.relAddress_user.relAddress.company_c")]find Membership[/@pathQuery] [#list memberships as membership] ${membership.relUser.firstname} ${membership.relUser.lastname} ...Directive to format two dates in freemarker If the two dates are on the same day the date gets only printed once, else both dates will be displayed.Generates a qr code from the given data with the provided size.Same as the query directive but does return the count instead of the entities.Inserts an executed 'Template_snippet' entity.Truncates content after a defined length and appends "...".