provides the env

this is just the base, a smarty implementation is needed