Changeset 437
- Timestamp:
- 08/29/07 09:38:10 (1 year ago)
- Files:
-
- trunk/History.txt (modified) (1 diff)
- trunk/Rakefile (modified) (1 diff)
- trunk/app_generators/merb/templates/conf/merb.yml (modified) (1 diff)
- trunk/lib/merb/mixins/render.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/History.txt
r429 r437 3 3 * app/ subdirectory of dist/ moved to root. 4 4 * Removed 'merb_' from most framework filenames. 5 * Fixed bug where image_tag would prepend /images/ to urls starting with http:// or https://. 5 * Fixed bug where image_tag would prepend /images/ to urls starting with 6 http:// or https://. 6 7 * benchmarking added to exceptions. 7 8 * Added a more flexible routes system that allows routing based on any request 8 9 environment variable. Regular expressions now form base of all routes. 10 * Non-erb template engines must be activated explicitly. List the name of the 11 engine in merb_init.rb: Merb::Template::Haml 9 12 10 13 See also: trunk/Rakefile
r433 r437 19 19 CLEAN.include ['**/.*.sw?', '*.gem', '.config'] 20 20 21 setup_clean [ "pkg", "lib/*.bundle", "*.gem", "doc", ".config", 'coverage' ]21 setup_clean [ "pkg", "lib/*.bundle", "*.gem", "doc", ".config", 'coverage', "cache"] 22 22 23 23 trunk/app_generators/merb/templates/conf/merb.yml
r427 r437 17 17 # Turn on memcached sessions. 18 18 # Requires these lines in merb_init.rb (and a running memcached server): 19 # require 'memcache _util'19 # require 'memcache' 20 20 # CACHE = MemCache.new('127.0.0.1:11211', { :namespace => 'my_app' }) 21 21 # :mem_cache_session: true trunk/lib/merb/mixins/render.rb
r434 r437 22 22 end 23 23 24 # universal render method. Template handlers are registered24 # Universal render method. Template handlers are registered 25 25 # by template extension. So you can use the same render method 26 26 # for any kind of template that implements an adapter module. 27 # out of the box Merb support Erubis, Haml, Markaby and Builder templates 28 # 29 # Erubis template ext: .herb .jerb .erb 27 # 28 # Out of the box Merb supports Erubis. In addition, Haml, Markaby 29 # and Builder templates are built in, but you must activate them in 30 # merb_init.rb by listing the name of the template engine you 31 # want to use: 32 # 33 # Merb::Template::Haml 34 # 35 # Erubis template ext: .herb .jerb .erb .rhtml 30 36 # Markaby template ext: .mab 31 37 # Builder template ext: .rxml .builder .xerb 32 38 # Haml template ext: .haml 39 # 40 # In addition, you can identify the type of output with an 41 # extension in the middle of the filename. Erubis is capable of 42 # rendering any kind of text output, not just HTML. 43 # 44 # index.html.erb update.js.erb feed.xml.erb 33 45 # 34 46 # Examples:
