2017 © Pedro Peláez
 

library smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

image

dqneo/smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

  • Thursday, February 11, 2016
  • by DQNEO
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Smarty Delimiter Converter

Build Status, (*1)

convert tool to replace delimiters (e.g. from { } to {{ }}) in your smarty template files., (*2)

DESCRIPTION

It converts the content, (*3)

{if $config.smarty_debug}
  {debug}
{/if}

into this, (*4)

{{if $config.smarty_debug}}
  {{debug}}
{{/if}}

You can customize delimiters as you like., (*5)

INSTALL

composer require dqneo/smarty-delimiter-converter

USAGE

use DQNEO\SmartyDelimiterConverter\Converter;

// define delimiters
$from = ['{', '}'];
$to = ['{{', '}}'];

$converter = new Converter($from, $to);

// convert a content
$converted = $converter->convert('hello {$name}'); // => 'hello {{$name}}'

# convert a file
$converted = $converter->convert('/path/to/file.tpl'); // returns a converted content

you can convert all template files under a directory recursivlely, (*6)

./bin/smarty-delimiter-converter /path/to/dir/

The Versions

11/02 2016

dev-master

9999999-dev https://github.com/dqneo/smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

  Sources   Download

LGPL-3.0

The Development Requires

templating cli smarty

10/02 2016

v0.0.3

0.0.3.0 https://github.com/dqneo/smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

  Sources   Download

LGPL-3.0

The Development Requires

templating cli smarty

10/02 2016

v0.0.2

0.0.2.0 https://github.com/dqneo/smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

  Sources   Download

LGPL-3.0

The Development Requires

templating cli smarty

10/02 2016

v0.0.1

0.0.1.0 https://github.com/dqneo/smarty-delimiter-converter

a cli tool to convert delimiters in smarty template files

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

templating cli smarty