fuel / parser

Fuel PHP Framework - v1.x template parser package adapters
http://fuelphp.com
64 stars 45 forks source link

Some config values can't be customized #32

Closed andyyyy closed 12 years ago

andyyyy commented 13 years ago

Some of the config values are written as arrays with implicit numeric keys, for instance:

'delimiters' => array('{', '}'),

Such values can't be overwritten in app/config/parser.php because the array from app/config/parser.php is then just merged to the original value:

array(4) {
  [0]=> string(2) "{" 
  [1]=> string(2) "}" 
  [2]=> string(2) "{%" 
  [3]=> string(2) "%}" 
}

It would be better to use such config values:

'delimiters' => array('left'=>'{', 'right'=>'}'),

See http://fuelphp.com/forums/topics/view/4686/ .