Update version.php to 3.3.0
[isso.git] / Template.php
index aeb8a72b1b96ab0ddfd3aa8efd9d4a45a1723575..dfe30c12ae088949b8201e41d30c9c52b1d0d790 100644 (file)
@@ -178,6 +178,17 @@ class BSTemplate
                }
        }
        
+       /**
+        * Evaluates and returns the template. This is equivalent to calling:
+        * $tpl->evaluate()->getTemplate()
+        *
+        * @return      string
+        */
+       public function __toString()
+       {
+               return $this->evaluate()->getTemplate();
+       }
+       
        /**
         * Returns the template data
         *