Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 7
- Log:
Initial import of RForum 0.2 sources from a downloaded Tarball.
RForum is a Ruby On Rails based forum and mail gateway service.
- Author:
- adh
- Date:
- Sat Jul 22 18:43:13 +0100 2006
- Size:
- 1406 Bytes
1 | module ActionView |
2 | include ERB::Util |
3 | |
4 | class Base |
5 | def render_file(template_path, use_full_path = true, local_assigns = {}) |
6 | |
7 | # ---- Begin personal additions to Rails core |
8 | # First, make sure this partial doesn't already exist as a mod (only supports .rhtml right now) |
9 | if FileTest.exists?( "#{RAILS_ROOT}/modules/views/#{template_path}.rhtml" ) |
10 | template_path = "../../modules/views/#{template_path}" |
11 | end |
12 | # ---- End personal additions to rails core |
13 | |
14 | @first_render = template_path if @first_render.nil? |
15 | |
16 | if use_full_path |
17 | template_extension = pick_template_extension(template_path) |
18 | template_file_name = full_template_path(template_path, template_extension) |
19 | else |
20 | template_file_name = template_path |
21 | template_extension = template_path.split(".").last |
22 | end |
23 | |
24 | # If we were to inject into the source, I beleive we would do it here |
25 | template_source = read_template_file(template_file_name, template_extension) |
26 | |
27 | begin |
28 | render_template(template_extension, template_source, template_file_name, local_assigns) |
29 | rescue Exception => e |
30 | if TemplateError === e |
31 | e.sub_template_of(template_file_name) |
32 | raise e |
33 | else |
34 | raise TemplateError.new(@base_path, template_file_name, @assigns, template_source, e) |
35 | end |
36 | end |
37 | end |
38 | |
39 | end |
40 | |
41 | end |
42 | |
43 |