Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1509 Bytes
1 | begin |
2 | require 'rubygems' |
3 | require 'active_support' |
4 | require 'action_controller' |
5 | require 'action_view' |
6 | action_view_included = true |
7 | rescue LoadError |
8 | action_view_included = false |
9 | end |
10 | |
11 | if action_view_included |
12 | class ActionView::Base |
13 | alias_method :old_concat, :concat unless instance_methods.include? "old_concat" |
14 | alias_method :old_form_tag, :form_tag unless instance_methods.include? "old_form_tag" |
15 | end |
16 | |
17 | module Haml |
18 | module Helpers |
19 | # This module overrides various helpers in ActionView to make them |
20 | # work more effectively with Haml. It's not available unless ActionView |
21 | # is installed. |
22 | # |
23 | #-- |
24 | # Methods in this module should be nodoc'd. |
25 | #++ |
26 | module ActionViewMods |
27 | def self.included(othermod) # :nodoc: |
28 | othermod.class_eval do |
29 | action_view(true) |
30 | alias_method :capture_erb_with_buffer, :capture_haml_with_buffer |
31 | end |
32 | end |
33 | |
34 | def concat(string, binding = nil) # :nodoc: |
35 | buffer.buffer.concat(string) |
36 | end |
37 | |
38 | def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc) # :nodoc: |
39 | if block_given? |
40 | oldproc = proc |
41 | proc = bind_proc do |*args| |
42 | concat "\n" |
43 | tab_up |
44 | oldproc.call(*args) |
45 | tab_down |
46 | end |
47 | end |
48 | old_form_tag(url_for_options, options, *parameters_for_url, &proc) |
49 | end |
50 | end |
51 | end |
52 | end |
53 | end |
54 |