2017 © Pedro Peláez
 

library spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

image

skylarkelty/spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

  • Saturday, August 17, 2013
  • by SkylarKelty
  • Repository
  • 2 Watchers
  • 2 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Spark

Latest Stable Version Build Status, (*1)

The 300 line template parser, (*2)

A high-performance Template Parser designed to work inside a full templating engine or alongside an application. Whilst Spark can be used on its own it includes a very limited set of features and is really only designed to work alongside a larger system., (*3)

Requires: - PHP 5.3 (or above), (*4)

Spark takes a HTML page and tokenises all tags within a specified namespace (e.g. Spark*) it then runs through user-specified callbacks for each token and replaces the token with the result., (*5)

The result of this project is a very simple template parser that can be hooked up to a more fully-featured templating engine., (*6)

Usage

$spark = new Spark\Core\Spark();
print $spark->run('<html><body><SparkVersion /></body></html>');

Adding a tag

$spark = new Spark\Core\Spark();

$spark->addTag("Example", function($html, $inner) {
    return "Hello World!";
});

print $spark->run('<html><body><SparkExample /></body></html>');

The Versions

17/08 2013

dev-master

9999999-dev https://github.com/SkylarKelty/Spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

  Sources   Download

Apache License v2.0

The Requires

  • php >=5.3

 

The Development Requires

by Skylar Tristan Kelty

templating template

12/08 2013

1.1.1

1.1.1.0 https://github.com/SkylarKelty/Spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

  Sources   Download

Apache License v2.0

The Requires

  • php >=5.3

 

The Development Requires

by Skylar Tristan Kelty

templating template

12/08 2013

1.1.0

1.1.0.0 https://github.com/SkylarKelty/Spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

  Sources   Download

Apache License v2.0

The Requires

  • php >=5.3

 

The Development Requires

by Skylar Tristan Kelty

templating template

03/08 2013

1.0.0

1.0.0.0 https://github.com/SkylarKelty/Spark

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

  Sources   Download

Apache License v2.0

The Requires

  • php >=5.3

 

The Development Requires

by Skylar Tristan Kelty

templating template

02/08 2013

0.1a

0.1.0.0-alpha https://github.com/SkylarKelty/Spark

High-performance Templating Engine designed to work with common WYSIWYG HTML editors.

  Sources   Download

commercial

The Requires

  • php >=5.3

 

The Development Requires

by Skylar Tristan Kelty

templating template