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.2.6 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.5 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.4 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.3 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.2 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.1 lib/rad/template/_relative_path_resolver.rb
rad_core-0.2.0 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.30 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.29 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.28 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.27 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.26 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.25 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.24 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.23 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.22 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.21 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.20 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.19 lib/rad/template/_relative_path_resolver.rb
rad_core-0.0.18 lib/rad/template/_relative_path_resolver.rb