PHP Classes

File: docs/Introduction/Possibilities for the designer.md

Recommend this page to a friend!
  Packages of Rafa Rodriguez   Div PHP Template Engine   docs/Introduction/Possibilities for the designer.md   Download  
File: docs/Introduction/Possibilities for the designer.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Div PHP Template Engine
Template processing engine that replaces tags
Author: By
Last change:
Date: 4 months ago
Size: 1,372 bytes
 

Contents

Class file image Download

The designer carries out its work in text files and he can use different tags. Div does not provide for the design obtrusive code. All that is programmed in the templates has a single goal: design.

  • Replace tags
  • Apply variable's modifiers: uppercase, lowercase, word count, paragraph count, string length, URL encode, convert everything to HTML entities
  • Working with substrings
  • Loops, iterations, cycles or repetitive parts
  • Parts of templates displayed conditionally
  • Evaluation conditions
  • Definition of variables
  • Divide the design into parts and then include or pre-process it
  • Formatting Numbers and Dates
  • Working with Formulas
  • Comments
  • Position of content
  • Recursion: the engine processes the template over and over again until there is nothing to process
  • Mechanism for the inheritance among templates
  • Ignoring parts of the template
  • Access to any specific value of the information passed by the programmer
  • Access to methods of information's objects
  • Aggregate functions: sum, average, minimum, maximum, count on.
  • Clean the output
  • Convert HTML to readable text
  • Using the custom subparsers implemented by the programmer.