2017 © Pedro Peláez
 

library nette-auto-variable-template

Auto variable template factory

image

tomaj/nette-auto-variable-template

Auto variable template factory

  • Saturday, January 27, 2018
  • by tomaj
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13,163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Nette auto variable template factory

Simple library that can assign variables in all latte templates (also components). Usefull when you need variable that will be always in all templates., (*1)

Instalation

composer require "tomaj/nette-auto-variable-template"

Usage

In config.neon you need setup factory:, (*2)

latte.templateFactory: {autowired: no}
templateFactory:
    factory: Tomaj\Latte\AutoVariableTemplateFactory(@latte.templateFactory)
    setup:
        - registerVariable('variableName', @someValue)
        - registerVariable('otherVariable', 'something else')

in each template will be variables {$variableName} and {$otherVariable}, (*3)

The Versions

27/01 2018

dev-master

9999999-dev

Auto variable template factory

  Sources   Download

LGPL LGPL-2.0-or-later

The Requires

 

variable nette latte global

28/08 2015

1.0

1.0.0.0

Auto variable template factory

  Sources   Download

LGPL

The Requires

 

variable nette latte global