Much better html rendering with css support and style inliner
[banana.git] / banana / page.inc.php
index 228c0ed..41576f6 100644 (file)
@@ -18,6 +18,8 @@ class BananaPage extends Smarty
     private $killed  = array();
     private $actions = array();
 
+    public $css = '';
+
     public function __construct()
     {
         $this->Smarty();
@@ -88,6 +90,14 @@ class BananaPage extends Smarty
         $this->killed[] = $page;
     }
 
+    /** Add Inline CSS to put in the page headers
+     * @param css CSS code
+     */
+    public function addCssInline($css)
+    {
+        $this->css .= $css;
+    }
+
     /** Preparte the page generation
      * @return template to use
      */