Sem descrição

Guillermo Espinoza bc20f0347e Update .gitlab-ci.yml há 5 anos atrás
.gitlab 19b48623b4 Directory .gitlab added há 6 anos atrás
Admin e702a3895f Se agrega action clone para template há 6 anos atrás
Command 97a0f5c1d7 Se limita el explode de parameters há 6 anos atrás
Entity 9452c62f90 Implementacion del owner voter há 8 anos atrás
Resources 09fbc9fdf0 traduccion Template Bundle há 6 anos atrás
Services 71204e18c8 Merge remote-tracking branch 'origin/FD3-480' há 6 anos atrás
Twig 7e50327475 FD3-612 se agrega chequeo si existe template há 6 anos atrás
keys 1a45248b37 Agregado drone há 7 anos atrás
.drone.yml 056f752064 Agregado del paso de tags a gogs há 7 anos atrás
.gitlab-ci.yml bc20f0347e Update .gitlab-ci.yml há 5 anos atrás
README.md d721c181c3 README.md edited online with Bitbucket há 7 anos atrás
TemplateBundle.php 1ba27b8546 commit inicial há 8 anos atrás
composer.json 9964d5491c Se quito version y minimum-stability há 7 anos atrás

README.md

TemplateBundle

Bundle para generar Templates

Instalación

composer.json:

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

Se requiere la librería dwoo para renderizar templates .tpl

composer require "dwoo/dwoo":"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).