Sin descripción

Guillermo Espinoza 2639ad33f0 update README hace 8 años
Command 1ba27b8546 commit inicial hace 8 años
Entity 1ba27b8546 commit inicial hace 8 años
Resources 1ba27b8546 commit inicial hace 8 años
Services 1ba27b8546 commit inicial hace 8 años
README.md 2639ad33f0 update README hace 8 años
TemplateBundle.php 1ba27b8546 commit inicial hace 8 años
composer.json 1ba27b8546 commit inicial hace 8 años

README.md

TemplateBundle

Bundle para generar Templates

Instalación:

Agregar en el composer.json

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/TemplateBundle.git",
        "options": {
                "local_pk": "./keys/bitbucket.id_rsa"
        }
    }
],
"require": {
    "ik/template-bundle": "dev-master",
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new TemplateBundle\TemplateBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "@TemplateBundle/Resources/config/services.yml" }

Comandos

template:render --name=NAME --filename=FILENAME --dump --parameter=p1:value1 --parameter=p2:value2

Busca un template según el parámetro name (--name=NAME) y lo renderiza a un archivo (--filename=FILENAME) y muestra su contenido opcionalmente (--dump).