Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed May 4, 2014
1 parent b6305d9 commit ec90246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ it with a unique file name in the compile directory.

```php
// Create an instance of the class
$view = new SurfStack\Templating\Template_Engine('template/template.tpl');
$view = new SurfStack\Templating\Template_Engine(__DIR__.'/template', 'template.tpl');

// Set the compile directory
$view->setCompileDir('template_compile');
$view->setCompileDir(__DIR__.'/template_compile');

// Assign variables
$view->assign('items', array('hello', 'world));
Expand All @@ -53,7 +53,7 @@ but will always detect changes in the templates.

```php
// Set the cache directory
$view->setCacheDir('template_cache');
$view->setCacheDir(__DIR__.'/template_cache');

// Enable caching
$view->setCacheTemplates(true);
Expand All @@ -79,7 +79,7 @@ $view->setStripTags(true);
$view->setStripWhitespace(true);

// Set the plugin directory
$view->setPluginDir('plugin');
$view->setPluginDir(__DIR__.'/plugin');

// Load plugins
$view->setLoadPlugins(true);
Expand Down

0 comments on commit ec90246

Please sign in to comment.