Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- New patches:
- [Allow render_template to work recursively + specs
- Aman Gupta <ramaze@tmm1.net>**20071018131712] {
- hunk ./lib/ramaze/helper/partial.rb 58
- - options[:instance] ||= current.instance
- + options[:instance] ||= current.instance.dup
- hunk ./spec/ramaze/helper/partial.rb 6
- +# autoload template engines used
- +Ramaze::Template::Haml
- +Ramaze::Template::Nagoro
- +
- hunk ./spec/ramaze/helper/partial.rb 28
- +
- + def recursion engine = nil
- + @n = 1
- + if %w{haml nag}.include? engine
- + render_template("recursive.#{engine}")
- + else
- + render_template('recursive.xhtml')
- + end
- + end
- hunk ./spec/ramaze/helper/partial.rb 51
- +
- + it 'should work recursively' do
- + %w{ /recursion /recursion/nag /recursion/haml }.each do |path|
- + get(path).body.gsub(/\n|\s+/,'').should ==
- + '<ul><li>1</li><ul><li>2</li><li>2</li></ul><li>1</li></ul>'
- + end
- + end
- addfile ./spec/ramaze/helper/template/recursive.haml
- hunk ./spec/ramaze/helper/template/recursive.haml 1
- -
- +%ul
- + %li= @n
- + - if @n < 2
- + - @n += 1
- + = render_template('recursive.haml')
- + - @n -= 1
- + %li= @n
- addfile ./spec/ramaze/helper/template/recursive.nag
- hunk ./spec/ramaze/helper/template/recursive.nag 1
- -
- +<ul>
- + <li>#@n</li>
- + <?r if @n < 2 ?>
- + <?r @n += 1 ?>
- + #{render_template('recursive.nag')}
- + <?r @n -= 1 ?>
- + <?r end ?>
- + <li>#@n</li>
- +</ul>
- addfile ./spec/ramaze/helper/template/recursive.xhtml
- hunk ./spec/ramaze/helper/template/recursive.xhtml 1
- -
- +<ul>
- + <li>#@n</li>
- + <?r if @n < 2 ?>
- + <?r @n += 1 ?>
- + #{render_template('recursive.xhtml')}
- + <?r @n -= 1 ?>
- + <?r end ?>
- + <li>#@n</li>
- +</ul>
- }
- Context:
- [Add Ramaze::APPDIR to complement Ramaze::SEEED, make Global.public_root and Global.template_root relative from the APPDIR so we don't have to care where we run start.rb from
- Michael Fellinger <m.fellinger@gmail.com>**20071018044723]
- [Change spec to point to an unexisting file in any case
- Michael Fellinger <m.fellinger@gmail.com>**20071018044704]
- [Some improvments for whywiki
- Michael Fellinger <m.fellinger@gmail.com>**20071018044220]
- [Introduce Controller::engine and change specs to use the new form
- Michael Fellinger <m.fellinger@gmail.com>**20071017234039]
- [LinkHelper was escaping query-parameters, update implementation and specs.
- Michael Fellinger <m.fellinger@gmail.com>**20071017130736]
- [Add template example for nagoro
- Michael Fellinger <m.fellinger@gmail.com>**20071017130725]
- [Remove some junk from Rakefile, we don't use svn
- Michael Fellinger <m.fellinger@gmail.com>**20071017123101]
- [Make examples/sourceview work anywhere
- Michael Fellinger <m.fellinger@gmail.com>**20071017122821]
- [A few cleanups to the whywiki example (thanks gimb)
- Aman Gupta <ramaze@tmm1.net>**20071017192459]
- [Keep the session[:STACK] out if we don't need it
- Michael Fellinger <m.fellinger@gmail.com>**20071016144938]
- [Simplify redirection
- Michael Fellinger <m.fellinger@gmail.com>**20071016140908]
- [Correct $LOAD_PATH in spec/helper.rb
- Michael Fellinger <m.fellinger@gmail.com>**20071016140854]
- [Sequel API change
- Michael Fellinger <m.fellinger@gmail.com>**20071016133116]
- [Small improvment for docs of RedirectHelper
- Michael Fellinger <m.fellinger@gmail.com>**20071016145327]
- [Small beautification to Dispatcher::File
- Michael Fellinger <m.fellinger@gmail.com>**20071016145239]
- [Don't mention coderay in README anymore
- Michael Fellinger <m.fellinger@gmail.com>**20071016152037]
- [Adapt Nagoro for latest API changes
- Michael Fellinger <m.fellinger@gmail.com>**20071016120024]
- [Add (for now optional) support for Nagoro templates.
- Michael Fellinger <m.fellinger@gmail.com>**20071015045805]
- [Add caching to sourceview
- Aman Gupta <ramaze@tmm1.net>**20071015221353]
- [Fix ezamar morpher, seems to break on 0.6 - simplify implementation at the same time... couldn't do a real benchmark for the new vs old since the old one doesn't seem to be able to process more complex documents, new one builds on XPATH functionality of hpricot and is a lot more robust but at the same time much easier to understand. Extend specs for it and don't require it by default anymore.
- Michael Fellinger <m.fellinger@gmail.com>**20071012124124]
- [layout example should not have an Element
- Michael Fellinger <m.fellinger@gmail.com>**20071011152604]
- [Minor sourceview cleanups
- Aman Gupta <ramaze@tmm1.net>**20071011043035]
- [Numeric#human_readable_filesize_format #=> Numeric#filesize_format
- Michael Fellinger <m.fellinger@gmail.com>**20071011035130]
- [gzip filter added
- jesuswasramazing.10.pistos@geoshell.com**20071005054848]
- [Fix <title> in layout example
- Michael Fellinger <m.fellinger@gmail.com>**20071010122507]
- [Remove mention of Nginx from feature CGI
- Michael Fellinger <m.fellinger@gmail.com>**20071009170713]
- [Add sourceview example- syntax highlighting source browser for ramaze source code
- Aman Gupta <ramaze@tmm1.net>**20071011013118]
- [rescue MissingArgument for missing arguments in bin/ramaze
- Michael Fellinger <m.fellinger@gmail.com>**20071006222648]
- [Add doc/LEGAL that is required by doc/LEGAL, holds a list of licenses and authors of files we use but do not 'own'.
- Michael Fellinger <m.fellinger@gmail.com>**20071005152720]
- [Add Global.boring to avoid logging of some static files
- Michael Fellinger <m.fellinger@gmail.com>**20071005052916]
- [Don't overwrite Global on sourcereload
- Michael Fellinger <m.fellinger@gmail.com>**20071005015003]
- [Move auth example into its own dir and separate out templates so action stubs aren't required. Make AuthHelper#login_required private
- Aman Gupta <ramaze@tmm1.net>**20071003043840]
- [Add benchmark suite
- Aman Gupta <ramaze@tmm1.net>**20071003010530]
- [Add the needed adapter/swiftiplied_mongrel and adapter/evented_mongrel
- Michael Fellinger <m.fellinger@gmail.com>**20071002233631]
- [Support :adapter => (:evented_mongrel|:swiftiplied_mongrel), setting by ENV with :adapter => :mongrel and (SWIFT|EVENT)=1 should still work. we require 'mongrel' in any case, could that lead to problems?
- Michael Fellinger <m.fellinger@gmail.com>**20071002233135]
- [AuthHelper cleanups and an example using Sequel
- Aman Gupta <ramaze@tmm1.net>**20071002234747]
- [Ignore /favicon.ico by default
- Aman Gupta <ramaze@tmm1.net>**20071002234355]
- [Fix hash-order issue for gestalt spec.
- Michael Fellinger <m.fellinger@gmail.com>**20071002152504]
- [Fix reference and logging of CGI adapter.
- Michael Fellinger <m.fellinger@gmail.com>**20070930163354]
- [Fix docs for AuthHelper
- Michael Fellinger <m.fellinger@gmail.com>**20070930051429]
- [Gestalt should accept symbols as attributes
- Michael Fellinger <m.fellinger@gmail.com>**20070929133737]
- [[localize] normalize session locale too
- Jonathan Buch <john@oxyliquit.de>**20070926160207]
- [Minor cleanup of whitespace
- Jonathan Buch <john@oxyliquit.de>**20070926102009]
- [[localize] normalize dictionary to regard symbols and strings the same, add usage doc
- Jonathan Buch <john@oxyliquit.de>**20070926095546]
- [Expand new Layout lookup so it can be relative paths too (no / at beginning means current controller)
- Jonathan Buch <john@oxyliquit.de>**20070925171154]
- [Add Stephan Maka to authors.
- Michael Fellinger <m.fellinger@gmail.com>**20070925160834]
- [spec/helper/wrap now handles rubygems version mismatch better.
- Michael Fellinger <m.fellinger@gmail.com>**20070925042337]
- [Do not automatically wrap layout paths in R(self, path) anymore, this allows for absolute paths so you can use layouts from other controllers easily.
- Michael Fellinger <m.fellinger@gmail.com>**20070925041727]
- [trivial comment changes
- jesuswasramazing.10.pistos@geoshell.com**20070925140510]
- [Global.ignore now only ignores files if they don't exist.
- Michael Fellinger <m.fellinger@gmail.com>**20070923051241]
- [Fix requires for to specs.
- Michael Fellinger <m.fellinger@gmail.com>**20070923050957]
- [Remove unused methods from Action
- Michael Fellinger <m.fellinger@gmail.com>**20070922191754]
- [XSLT template example: add Content-Type
- stephan@spaceboyz.net**20070921225525]
- [XSLT template spec: two more examples
- stephan@spaceboyz.net**20070921130029]
- [XSLT templates: add extFunctions capability
- stephan@spaceboyz.net**20070921115648]
- [Ramaze support for XSLT templates, example
- stephan@spaceboyz.net**20070920011044]
- [Instruct SourceReload to expand filenames before loading to make sure they really do exist where we think they do.
- Michael Fellinger <m.fellinger@gmail.com>**20070921140842]
- [Slight 'beautifcation' for specwrapper
- Michael Fellinger <m.fellinger@gmail.com>**20070921081739]
- [SourceReload#reload_glob is now SourceReload.trait[:reload_glob] for ultimate control.
- Michael Fellinger <m.fellinger@gmail.com>**20070921080937]
- [This improves logging a bit by introducing the :dev tag and so lowering the overall output in default mode.
- Michael Fellinger <m.fellinger@gmail.com>**20070921064236]
- [Gestalt: allow text in arguments, properly escape this text and attributes
- stephan@spaceboyz.net**20070920153337]
- [alias Ramaze.contrib to Ramaze::Contrib.load
- Aman Gupta <ramaze@tmm1.net>**20070919153655]
- [Add $0 to files being sourcereloaded.
- Michael Fellinger <m.fellinger@gmail.com>**20070919062417]
- [Implement Global.ignore and spec it.
- Michael Fellinger <m.fellinger@gmail.com>**20070919062143]
- [Add Global.cache_alternative so you can specify a different cache-class to use for only certain caches. For example: Ramaze::Global.cache_alternative[:sessions] = Ramaze::MemcachedCache
- Michael Fellinger <m.fellinger@gmail.com>**20070918104659]
- [Small improvment to the sequel/fill contrib
- Michael Fellinger <m.fellinger@gmail.com>**20070918054112]
- [Add contrib/sequel/fill
- Michael Fellinger <m.fellinger@gmail.com>**20070918053330]
- [alias redirect_referer to redirect_referrer in RedirectHelper
- Michael Fellinger <m.fellinger@gmail.com>**20070918045439]
- [Allow custom /helper directory in apps, will be searched before ramazes helpers.
- Michael Fellinger <m.fellinger@gmail.com>**20070918014843]
- [Add the wikore example and fix spec for wiktacular a little.
- Michael Fellinger <m.fellinger@gmail.com>**20070917114503]
- [Improve output of spec wrapper a bit.
- Michael Fellinger <m.fellinger@gmail.com>**20070917114458]
- [Adding path for OSX to tool/tidy and improve readability of the spec for it a bit.
- Michael Fellinger <m.fellinger@gmail.com>**20070912125255]
- [Fixing dependence on the debug.rb implementation of ruby, since this may vary between different versions/implementations, use gestalt.rb instead, the oldest and most stable file we have.
- Michael Fellinger <m.fellinger@gmail.com>**20070912090809]
- [Small beautification/speedup for the mocked http
- Michael Fellinger <m.fellinger@gmail.com>**20070911084731]
- [Clean up the controller/resolve part a bit, implement raise_no_filter which throws a NoFilter error now and fix a minor bug that would result in a faulty response if an element of Cache.resolved was no valid action. Added docs for all methods in Controller.
- Michael Fellinger <m.fellinger@gmail.com>**20070911162955]
- [Restructuring of how contribs are handled, introducing the Ramaze::Contrib namespace, adding Global.contribs so we can add a unified shutdown in future, fixing routing so it won't try to match an already resolved route again and thereby avoiding recursion.
- Michael Fellinger <m.fellinger@gmail.com>**20070911144843]
- [Adding snippet for Array#put_within/put_before/put_after plus specs. docs missing.
- Michael Fellinger <m.fellinger@gmail.com>**20070911054158]
- [Updated spec for route
- Aman Gupta <ramaze@tmm1.net>**20070910063242]
- [This introduces the first contrib for routes, slight restructuring of Controller::resolve to allow filtering based on Controller::FILTER like we know it from Dispatcher. Added dictionary.rb from facets to allow sorted but hash-like routes-adding. Spec for routes added as small showcase.
- Michael Fellinger <m.fellinger@gmail.com>**20070910044521]
- [Add basic Ramaze::contrib as future helping instance for contributed things.
- Michael Fellinger <m.fellinger@gmail.com>**20070910044506]
- [make snippets/struct/values_at behaviour compatible with standard ruby (orig. by riffraff)
- Michael Fellinger <m.fellinger@gmail.com>**20070907083216]
- [Fix for directory-listing, always sort files/dirs shown
- Michael Fellinger <m.fellinger@gmail.com>**20070907083158]
- [TAG 0.1.4
- Michael Fellinger <m.fellinger@gmail.com>**20070906135219]
- Patch bundle hash:
- 8607c10745c63bbcf61679dca144c8b03aba8856
Add Comment
Please, Sign In to add comment