2017 © Pedro Peláez
 

symfony-bundle templating-bundle

image

werkint/templating-bundle

  • Monday, January 11, 2016
  • by nick4fake
  • Repository
  • 5 Watchers
  • 1 Stars
  • 905 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Templating

Deprecated

use twig compile instead; and you can use bower, (*1)

Composer

composer require 'werkint/templating-bundle:dev-master'

Kernel

AppKernel::registerBundles:, (*2)

        ...
    new \Werkint\Bundle\TemplatingBundle\WerkintTemplatingBundle()
        ...

Routing

app/config/routing.yml:, (*3)

    werkint_templating.:
      resource: "@WerkintTemplatingBundle/Resources/config/routing.yml"
      prefix: "/api"
      options:
        expose: true
$router->generate('ajax_templating', ['template' => '@YourBundle/Some/someTemplate.twig'])

OR, (*4)

define([
    'some-module/views/view',
    'werkint-templating/template!@YourBundle/Some/someTemplate.twig'
], function (View, template) {
    'use strict';

    return View.extend({
        'template': template,
    });
});

JS

bower install template --save

or include web/bundles/werkinttemplating/js/*.js, (*5)

Public templates

@YourBundle/Resources/config/templates.yml:, (*6)

parameters:
  your_bundle.public_templates:
    - @@YourBundle/Some/someTemplate.twig
services:
  your_bundle.public_template_provider:
    class: Your\Bundle\SomeBundle\Service\TemplateProvider
    arguments:
      - % your_bundle.public_templates%
    tags:
      - {name: werkint_templating.public_template }

Or Werkint\Bundle\TemplatingBundle\Service\TemplateProviderInterface, (*7)

The Versions

11/01 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Vladimir Odesskij

11/01 2016

v0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

 

by Vladimir Odesskij

06/01 2016

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

by Vladimir Odesskij

26/06 2015

v0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

 

by Vladimir Odesskij