2017 © Pedro Peláez
 

library skeleton-template

Template library for skeleton

image

tigron/skeleton-template

Template library for skeleton

  • Monday, June 11, 2018
  • by tigron
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,152 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

skeleton-template

Description

General templating for Skeleton. This library supports multiple templating libraries as back-end. Currently only the Twig back-end is supported via skeleton-template-twig, (*1)

Installation

Installation via composer:, (*2)

composer require tigron/skeleton-template

Howto

// Initialize a template object
$template = new \Skeleton\Template\Template();

// Add a template path
$template->add_template_path($my_very_cool_path);

// Set a translation object (optional);
$template->set_translation(\Skeleton\I18n\Translation $translation);

// Assign variables
$template->assign('my_variable_name', 'content1');
$template->assign('my_variable_name2', 'content2');

// return the rendered template
$html = $template->render('test.twig');

// $html contains the rendered template

The Versions

11/06 2018

dev-master

9999999-dev

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA

21/03 2018

v0.1.2

0.1.2.0

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA

25/05 2016

v0.1.0

0.1.0.0

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA

09/02 2016

v0.0.3

0.0.3.0

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA

27/10 2015

v0.0.2

0.0.2.0

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA

18/08 2015

v0.0.1

0.0.1.0

Template library for skeleton

  Sources   Download

MIT

by Tigron BVBA