PHP Classes
elePHPant
Icontem

File: FUTURE.md

Recommend this page to a friend!
  Classes of Rafael Rodriguez  >  Div PHP Template Engine  >  FUTURE.md  >  Download  
File: FUTURE.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: 1 year ago
Size: 853 bytes
 

Contents

Class file image Download

FUTURE FEATURES

2016-11-16

variable modifier for trim values

in the present:
     
{strip}{$varname}{/strip}
(# trim("{$varname}") #)

in the future:
ltrim: {-varnme}
rtrim: {varname-}
trim: {-varname-}
trim: {trim:varname}
trim: {$varname:trim}

variable modifier for var_export

in the present:
// create subparser
function export($src, $items){
    $v = $items[$src];
    if (is_object($v))
    $v = get_object_vars($v);
    return str_replace("\n","",var_export($v, true));
}

div::setSubParser('export');

{export}varname{/export}

bug? subparser before conditional parts


2016-11-21

new dialect's components (constants)

  • DIV_TAG_LOOP_ORDER for '_order' var in loops
  • DIV_TAG_LOOP_INDEX for '_index' var in loops
  • DIV_TAG_LOOP_KEY for '_key' var in loops