Sha256: 231f56a755f66c0332297753bafd9348f3d458457b909c18ee15f5670cbecd3d
Contents?: true
Size: 349 Bytes
Versions: 5
Compression:
Stored size: 349 Bytes
Contents
require "slim" module Nyara class View class Slim def self.src template t = ::Slim::Template.new(nil, nil, pretty: false){ template } src = t.instance_variable_get :@src if src.start_with?('_buf = []') src.sub! '_buf = []', '_buf = @_nyara_view.out' end src end end end end
Version data entries
5 entries across 5 versions & 1 rubygems