Class: Markaby::Rails::Template

### Home Classes Methods

### In Files

- lib/markaby/rails/deprecated.rb

### Parent

Object

### Methods

- ::builder_class
- ::builder_class=
- ::new
- #render

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Markaby
- Markaby::Builder
- Markaby::BuilderTags
- Markaby::CssProxy
- Markaby::Fragment
- Markaby::InvalidXhtmlError
- Markaby::Rails
- Markaby::Rails::ActionControllerHelpers
- Markaby::Rails::Helpers
- Markaby::Rails::RailsBuilder
- Markaby::Rails::RailsBuilder::FormHelperProxy
- Markaby::Rails::RailsBuilder::OutputBuffer
- Markaby::Rails::Template
- Markaby::Rails::TemplateHandler
- Markaby::Stream
- Markaby::Tilt
- Markaby::XHTMLFrameset
- Markaby::XHTMLStrict
- Markaby::XHTMLTransitional
- Markaby::XmlMarkup
- Sinatra
- Sinatra::Base
- Sinatra::Templates
- Kernel
- Object

No matching classes.

# Markaby::Rails::Template

### Attributes

path[RW]
source[RW]

### Public Class Methods

builder_class() click to toggle source

    # File lib/markaby/rails/deprecated.rb, line 24
    def self.builder_class
      @@builder_class ||= Builder
    end

builder_class=(builder) click to toggle source

    # File lib/markaby/rails/deprecated.rb, line 20
    def self.builder_class=(builder)
      @@builder_class = builder
    end

new(source) click to toggle source

    # File lib/markaby/rails/deprecated.rb, line 30
    def initialize(source)
      @source = source.to_s
    end

### Public Instance Methods

render(*args) click to toggle source

    # File lib/markaby/rails/deprecated.rb, line 34
    def render(*args)
      output = self.class.builder_class.new(*args)

      if path
        output.instance_eval source, path
      else
        output.instance_eval source
      end

      output.to_s
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.