Module: BootstrapEmail

Defined in:
lib/bootstrap-email/erb.rb,
lib/bootstrap-email/setup.rb,
lib/bootstrap-email/config.rb,
lib/bootstrap-email/version.rb,
lib/bootstrap-email/compiler.rb,
lib/bootstrap-email/sass_cache.rb,
lib/bootstrap-email/config_store.rb,
lib/bootstrap-email/rails/engine.rb,
lib/bootstrap-email/converters/hr.rb,
lib/bootstrap-email/converters/base.rb,
lib/bootstrap-email/converters/body.rb,
lib/bootstrap-email/converters/card.rb,
lib/bootstrap-email/converters/grid.rb,
lib/bootstrap-email/converters/alert.rb,
lib/bootstrap-email/converters/align.rb,
lib/bootstrap-email/converters/badge.rb,
lib/bootstrap-email/converters/block.rb,
lib/bootstrap-email/converters/color.rb,
lib/bootstrap-email/converters/stack.rb,
lib/bootstrap-email/converters/table.rb,
lib/bootstrap-email/converters/button.rb,
lib/bootstrap-email/converters/margin.rb,
lib/bootstrap-email/converters/spacer.rb,
lib/bootstrap-email/converters/padding.rb,
lib/bootstrap-email/converters/spacing.rb,
lib/bootstrap-email/rails/mail_builder.rb,
lib/bootstrap-email/converters/container.rb,
lib/bootstrap-email/converters/paragraph.rb,
lib/bootstrap-email/converters/head_style.rb,
lib/bootstrap-email/converters/preview_text.rb,
lib/bootstrap-email/converters/beautify_html.rb,
lib/bootstrap-email/converters/ensure_doctype.rb,
lib/bootstrap-email/converters/force_encoding.rb,
lib/bootstrap-email/converters/version_comment.rb,
lib/bootstrap-email/converters/support_url_tokens.rb,
lib/bootstrap-email/converters/add_missing_meta_tags.rb

Defined Under Namespace

Modules: Converter, Rails Classes: Compiler, Config, ConfigStore, Erb, SassCache

Constant Summary collapse

VERSION =
File.read(
  File.expand_path('../../VERSION', __dir__)
).strip.freeze

Class Method Summary collapse

Class Method Details

.clear_sass_cache!Object



17
18
19
# File 'lib/bootstrap-email/setup.rb', line 17

def clear_sass_cache!
  FileUtils.rm_rf(BootstrapEmail::Config.new.sass_cache_location)
end

.configure {|static_config| ... } ⇒ Object

Yields:



9
10
11
# File 'lib/bootstrap-email/setup.rb', line 9

def configure
  yield static_config
end

.reset_config!Object



13
14
15
# File 'lib/bootstrap-email/setup.rb', line 13

def reset_config!
  remove_instance_variable :@static_config if defined?(@static_config)
end

.static_configObject



5
6
7
# File 'lib/bootstrap-email/setup.rb', line 5

def static_config
  @static_config ||= BootstrapEmail::ConfigStore.new
end