Class: Tilt::MarkabyTemplate

### Home Classes Methods

### In Files

- lib/tilt/markaby.rb

### Parent

Template

### Methods

- ::builder_class
- ::engine_initialized?
- #__capture_markaby_tilt__
- #evaluate
- #initialize_engine
- #prepare

### Class/Module Index

Quicksearch

- Tilt
- Tilt::AsciidoctorTemplate
- Tilt::BlueClothTemplate
- Tilt::BuilderTemplate
- Tilt::CSVTemplate
- Tilt::Cache
- Tilt::CoffeeScriptTemplate
- Tilt::CompileSite
- Tilt::CreoleTemplate
- Tilt::ERBTemplate
- Tilt::ErubisTemplate
- Tilt::EtanniTemplate
- Tilt::HamlTemplate
- Tilt::KramdownTemplate
- Tilt::LessTemplate
- Tilt::LiquidTemplate
- Tilt::MarkabyTemplate
- Tilt::MarukuTemplate
- Tilt::NokogiriTemplate
- Tilt::PlainTemplate
- Tilt::RDiscountTemplate
- Tilt::RDocTemplate
- Tilt::RadiusTemplate
- Tilt::RedClothTemplate
- Tilt::RedcarpetTemplate
- Tilt::RedcarpetTemplate::Redcarpet1
- Tilt::RedcarpetTemplate::Redcarpet2
- Tilt::SassTemplate
- Tilt::ScssTemplate
- Tilt::StringTemplate
- Tilt::Template
- Tilt::WikiClothTemplate
- Tilt::YajlTemplate

No matching classes.

# Tilt::MarkabyTemplate

Markaby github.com/markaby/markaby

### Public Class Methods

builder_class() click to toggle source

    # File lib/tilt/markaby.rb, line 7
    def self.builder_class
      @builder_class ||= Class.new(Markaby::Builder) do
        def __capture_markaby_tilt__(&block)
          __run_markaby_tilt__ do
            text capture(&block)
          end
        end
      end
    end

engine_initialized?() click to toggle source

    # File lib/tilt/markaby.rb, line 17
    def self.engine_initialized?
      defined? ::Markaby
    end

### Public Instance Methods

__capture_markaby_tilt__(&block) click to toggle source

    # File lib/tilt/markaby.rb, line 9
    def __capture_markaby_tilt__(&block)
      __run_markaby_tilt__ do
        text capture(&block)
      end
    end

evaluate(scope, locals, &block) click to toggle source

    # File lib/tilt/markaby.rb, line 28
    def evaluate(scope, locals, &block)
      builder = self.class.builder_class.new({}, scope)
      builder.locals = locals

      if data.kind_of? Proc
        (class << builder; self end).send(:define_method, :__run_markaby_tilt__, &data)
      else
        builder.instance_eval           def __run_markaby_tilt__            #{data}          end, __FILE__, __LINE__
      end

      if block
        builder.__capture_markaby_tilt__(&block)
      else
        builder.__run_markaby_tilt__
      end

      builder.to_s
    end

initialize_engine() click to toggle source

    # File lib/tilt/markaby.rb, line 21
    def initialize_engine
      require_template_library 'markaby'
    end

prepare() click to toggle source

    # File lib/tilt/markaby.rb, line 25
    def prepare
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.