Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 720 Bytes

README-use of templates.md

File metadata and controls

42 lines (28 loc) · 720 Bytes

Use Of Template

syntax:

ThemeUtil.View( TagControllerAddress, FileTemplate, Cache);

usage:

// default template, no cache
Response.Content:= ThemeUtil.View( @TagController);

// default template, with cache
Response.Content:= ThemeUtil.View( @TagController, '', true);

// custom template, with cache
Response.Content:= ThemeUtil.View( @TagController, 'myfolder/mytemplate', true);

Assign variable to template

syntax:

  ThemeUtil.AssignVar[ IndexName] := variable;
  // or
  ThemeUtil.Assign( IndexName, pointer_of_variable);

example

  ThemeUtil.AssignVar['yourvariablename'] := News.Data;
  // or
  ThemeUtil.Assign('yourvariablename', @Data);