module Innate::View::Brace

Public Class Methods

call(action, string) click to toggle source
# File lib/innate/view/brace.rb, line 11
def self.call(action, string)
  context = ::Bytewise::Context.new action.instance, variables: action.variables, filename: action.view

  View.compile(string) do |str|
    html = BraceMarkup.render(str, context: context)

    return html, 'text/html'
  end
end