
This is a revamping of the Drupal Smarty engine to make it fully compatible and integrated with
Drupal 4.5.x-4.6.x.  It expects a Smarty installation in the ./libs directory - you must obtain
this and extract it here yourself. It is not included by default as a policy of the Drupal.org
contributions repository.

Most code is largely drawn from the PHPTemplate 4.6 engine code. Credit belongs to its authors.

The 'default' theme for this engine is 'box_grey_smarty'.

Installation:
	1. Extract tarball to drupal_base/themes/engines/
	2. Extract Smarty Template Engine tarball from - http://smarty.php.net/download.php
	   to a temporary location.
	3. Copy the 'libs' subdirectory from the temporary location to
	   drupal_base/themes/engines/smarty/libs
	   Smarty.class.php should be located at 'drupal_base/themes/engines/smarty/libs/Smarty.class.php'
	4. Ensure templates_c directory is readable and writable by the web server process.

Changes/fixes:
	- Primary and Secondary links now pull from global config.
	- Smarty plugins for {theme} {url} and other drupal function calls (removes need for {php} tags).
	- Removed need to edit hardcoded variables as it expects Smarty to reside in './libs'
	  See installation notes above.
	- Added templates_c directory in themes/engines/smarty to hold compiled templates.
	  The web server process needs read and write access to this directory.
	- Added permission checking to alert user about directory permission problems.

Todo: 
	- Integrate caching with the template config. (it currently defaults to off)
	- quick clear cache/templates button(s)

Files:
	./*.tpl - default template hooks
	./LICENSE.txt - license for source
	./README.txt - this file
	./smarty.engine - Smarty engine def.
	./smartytemplate.php - SmartyTemplate class definition (renamed from SmartyTemplate.class.php)
	./templates_c - directory to hold compiled templates (needs rw access for web server)
	./plugins - Smarty plugins directory, several added files included
	./plugins/function.l.php - smarty/drupal integration - {l} tags
	./plugins/function.set_null.php - set_null smarty plugin
	./plugins/function.t.php - smarty/drupal integration - {t} tags
	./plugins/function.theme.php - smarty/drupal integration - {theme} tags
	./plugins/function.url.php - smarty/drupal integration - {url} tags
	./plugins/function.variable_get.php - smarty/drupal integration - {variable_get} tags
	./plugins/function.assign_adv.php - advanced assign plugin, note below
	./libs - Expected Smarty installation - !NOT INCLUDED! See installation notes above for details.

Notes:
	includes smarty plugin assign_adv from
	   http://smarty.incutio.com/?page=AdvancedAssignPlugin

Help/Problems:
	For problems or help:
	First search drupal.org for problems and look through drupal.org forums before contacting
	  through email.

	Author email: travis dot cline at gmail dot com
	Original author email: lobo at yahoo dot com

	Please include 'drupal smarty engine question' or something of the sort in the subject line.

Patches:
	Please feel free to email any patches or improvements.

Contributors:
	lobo
	nsanity
	tacker
	Goba
	tclineks

License:
	Distributed under GPL - see LICENSE.txt
