Module: Stencil

Defined in:
lib/stencil/view.rb,
lib/stencil/template.rb,
lib/stencil/processor.rb,
lib/stencil/directives/base.rb,
lib/stencil/directives/text.rb,
lib/stencil/dynamic-template.rb,
lib/stencil/spec/view_matcher.rb,
lib/stencil/directives/term-style.rb

Defined Under Namespace

Modules: ViewHost, ViewMatcher Classes: Apply, BackgroundColor, Block, Bold, Capsule, Data, Directive, DynamicTemplate, Each, Else, End, EvaluationHost, Exception, ForegroundColor, If, Include, Indent, Interpolate, Inverse, JSONTemplate, ListCapsule, Literal, Newline, ParseError, RenderError, Template, TermStyleDirective, Underline, View, ViewDefinition, With, Wrap

Constant Summary collapse

Styles =
{
  :foreground => { 
    'black'   => 30,
    'red'     => 31, 
    'green'   => 32, 
    'yellow'  => 33,
    'blue'    => 34,
    'magenta' => 35,
    'cyan'    => 36,
    'white'   => 37,
    'default' => 39
  },

  :bold => {
    'set' => 1,
    'default' => 22
  },

  :underline => {
    'set' => 4,
    'default' => 24
  },

  :blink => {
    'set' => 5,
    'default' => 25
  },

  :inverse => {
    'set' => 7,
    'default' => 27
  }
}