Sha256: 193c6af8e36575c87313a67d86a3159e29926727d0a746eb87e038a664480074

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Nitro

# A compiler that handles Rails style simplistic layouts. 
# Perhaps this will be useful for some people that are comming
# from Rails.

class LayoutCompiler # :nodoc: all

  def self.transform(source, compiler)
    if layout = compiler.controller.ann.self[:layout]
      return "<#{layout}>#{source}</#{layout}>"
    else 
      return source
    end
  end
  
end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.41.0 lib/nitro/compiler/layout.rb
nitro-0.40.0 lib/nitro/compiler/layout.rb