lib/renderers/renderer.rb in garterbelt-0.0.7 vs lib/renderers/renderer.rb in garterbelt-0.0.8

- old
+ new

@@ -17,11 +17,19 @@ def level view.level end + def style + view.render_style + end + def indent - ' '*level*2 + style == :minified ? "" : ' '*level*2 + end + + def line_end + style == :minified ? "" : "\n" end def render raise NotImplementedError, "Subclasses must implement #render" end \ No newline at end of file