diff --git a/src/Ladybug/Renderer/AbstractRenderer.php b/src/Ladybug/Renderer/AbstractRenderer.php
index d40fd79..200a1ef 100644
--- a/src/Ladybug/Renderer/AbstractRenderer.php
+++ b/src/Ladybug/Renderer/AbstractRenderer.php
@@ -23,13 +23,17 @@ abstract class AbstractRenderer implements RendererInterface
/** @var \Ladybug\Theme\ThemeResolver $themeResolver */
protected $themeResolver;
+ /** @var array $options */
+ protected $options;
+
/**
* Constructor
* @param \Ladybug\Theme\ThemeResolver $themeResolver
*/
- public function __construct(ThemeResolver $themeResolver)
+ public function __construct(ThemeResolver $themeResolver, $options = array())
{
$this->themeResolver = $themeResolver;
+ $this->options = $options;
}
/**
diff --git a/src/Ladybug/Renderer/HtmlRenderer.php b/src/Ladybug/Renderer/HtmlRenderer.php
index 05420e7..ce00250 100644
--- a/src/Ladybug/Renderer/HtmlRenderer.php
+++ b/src/Ladybug/Renderer/HtmlRenderer.php
@@ -31,6 +31,8 @@ public function render(array $nodes, array $extraData = array())
{
$this->loadTemplatingEngine();
+ $extraData = array_merge($extraData, array('options' => $this->options));
+
return $this->templatingEngine->render('layout.html.twig', array_merge(array(
'nodes' => $nodes,
'css' => $this->getCssContents(),
diff --git a/src/Ladybug/Resources/container/container.xml b/src/Ladybug/Resources/container/container.xml
index 26169dc..85b2bd7 100644
--- a/src/Ladybug/Resources/container/container.xml
+++ b/src/Ladybug/Resources/container/container.xml
@@ -19,6 +19,11 @@
3
false
false
+
+
+ 500px
+
+
diff --git a/src/Ladybug/Resources/container/renderers.xml b/src/Ladybug/Resources/container/renderers.xml
index 7566ecc..ef8e4e1 100644
--- a/src/Ladybug/Resources/container/renderers.xml
+++ b/src/Ladybug/Resources/container/renderers.xml
@@ -8,6 +8,7 @@
+ %renderer.html%
diff --git a/src/Ladybug/Theme/Base/View/Html/iframe.html.twig b/src/Ladybug/Theme/Base/View/Html/iframe.html.twig
index 5abc023..9518a94 100644
--- a/src/Ladybug/Theme/Base/View/Html/iframe.html.twig
+++ b/src/Ladybug/Theme/Base/View/Html/iframe.html.twig
@@ -1,4 +1,4 @@
-
+