class Babl::Config
There is basically two ways to use BABL: the Rails way, and the clean way.
Rails way
-
BABL detects Rails and integrates with it automatically (only if BABL is required AFTER Rails).
-
BABL configuration is global (defined via
Babl.configure
). -
Global configuration is also used by:
Babl.template Babl.compile Babl.source
Clean way
-
You can decide not to use global configuration. It will result in more verbosity but it protects you from global settings.
-
Equivalences:
Babl.template ==> Babl::Template.new Babl.compile ==> Babl::Template#compile Babl.source ==> Babl::Template#source
Attributes
cache_templates[RW]
lookup_context[RW]
preloader[RW]
pretty[RW]
using[RW]
Public Class Methods
new()
click to toggle source
# File lib/babl.rb, line 34 def initialize @preloader = Rendering::NoopPreloader @pretty = true @cache_templates = false @lookup_context = nil @using = [] end