Sha256: 213a329ca59893efcef4ad7ac008b8827ee81674d15394bf3ecf26c5afdb77e7

Contents?: true

Size: 437 Bytes

Versions: 24

Compression:

Stored size: 437 Bytes

Contents

class Rad::Template::RelativePathResolver
  def find_relative_template tname, prefixes, format, exact_format, current_dir    
    raise "You can't use relative template path '#{tname}' without :current_dir!" unless current_dir
    prefixes = prefixes || rad.template.prefixes
    rad.template.find_file("/#{tname}", prefixes, format, exact_format, [current_dir])
  end
  cache_method_with_params_in_production :find_relative_template
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.0.17 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.16 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.15 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.14 lib/rad/template/_relative_path_resolver.rb