2017 © Pedro Peláez
 

library smarty3-include-if-exists

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

image

konekt/smarty3-include-if-exists

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  • Sunday, May 8, 2016
  • by konekt
  • Repository
  • 1 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Include If Exists compiler plugin for Smarty v3

Summary

This is a smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates., (*1)

For a similar plugin for smarty v2 click here, (*2)

Usage

Use the following syntax in smarty templates: {include_if_exists file="foo.tpl" else="bar.tpl"}, (*3)

Installation

  1. The easy way: copy the file compiler.include_if_exists.php in your smarty plugins directory.
  2. The silky way:
    • put the file compiler.include_if_exists.php in an arbitrary folder
    • add the plugin dir to smarty upon initialization $smarty->addPluginsDir("your/path/to/the/files");

The Versions

08/05 2016

dev-master

9999999-dev

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  Sources   Download

MIT

The Requires

  • php >=5.2

 

smarty

08/05 2016

1.1.2

1.1.2.0

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  Sources   Download

MIT

The Requires

  • php >=5.2

 

smarty

06/05 2016

1.1.1

1.1.1.0

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  Sources   Download

MIT

The Requires

  • php >=5.2

 

smarty

04/05 2016

1.1.0

1.1.0.0

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  Sources   Download

MIT

The Requires

  • php >=5.2

 

smarty

20/04 2016

1.0.1

1.0.1.0

Smarty v3 plugin for specifying conditional inclusion of subtemplates within smarty templates

  Sources   Download

MIT

The Requires

  • php >=5.2

 

smarty