Module: Slim

Defined in:
lib/slim/engine.rb,
lib/slim/filter.rb,
lib/slim/parser.rb,
lib/slim/command.rb,
lib/slim/grammar.rb,
lib/slim/include.rb,
lib/slim/version.rb,
lib/slim/controls.rb,
lib/slim/embedded.rb,
lib/slim/template.rb,
lib/slim/translator.rb,
lib/slim/do_inserter.rb,
lib/slim/end_inserter.rb,
lib/slim/smart/filter.rb,
lib/slim/smart/parser.rb,
lib/slim/splat/filter.rb,
lib/slim/erb_converter.rb,
lib/slim/interpolation.rb,
lib/slim/smart/escaper.rb,
lib/slim/splat/builder.rb,
lib/slim/code_attributes.rb,
lib/slim/logic_less/filter.rb,
lib/slim/logic_less/context.rb

Overview

The Slim module contains all Slim related classes (e.g. Engine, Parser). Plugins might also reside within the Slim module (e.g. Include, Smart).

Defined Under Namespace

Modules: Grammar, Smart, Splat Classes: CodeAttributes, Command, Controls, DoInserter, ERBConverter, Embedded, EndInserter, Engine, Filter, Include, Interpolation, InvalidAttributeNameError, LogicLess, NewlineCollector, OutputProtector, Parser, TextCollector, Translator

Constant Summary collapse

VERSION =

Slim version string

'4.1.0'
Template =

Tilt template implementation for Slim

Temple::Templates::Tilt(Slim::Engine, register_as: :slim)
RailsTemplate =

Rails template implementation for Slim

Temple::Templates::Rails(Slim::Engine,
register_as: :slim,
# Use rails-specific generator. This is necessary
# to support block capturing and streaming.
generator: Temple::Generators::RailsOutputBuffer,
# Disable the internal slim capturing.
# Rails takes care of the capturing by itself.
disable_capture: true,
streaming: true)