manual/Extending/ExtendingHyde.md in hydeweb-0.0.5 vs manual/Extending/ExtendingHyde.md in hydeweb-0.0.7
- old
+ new
@@ -40,11 +40,11 @@
In this example, we'll create a simple helper function.
# extensions/hyde-blog/hyde-blog.rb
module Hyde
module Helpers
- module BlogHelpers
+ module FormHelpers
def form_tag(meth, action, &b)
[ "<form method='#{meth}' action='#{action}'>",
b.call,
"</form>"
].join("\n")
@@ -55,11 +55,11 @@
In your project's site files, you can then now use this helper.
# site/my_page.html.haml
%h1 My form
- = form_tag 'post', '/note/new' do
+ != form_tag 'post', '/note/new' do
%p
%label Your name:
%input{ :type => 'text', :name => 'name' }
%p
%label Your email:
@@ -113,5 +113,6 @@
clean Cleans up your project's dirt
Adding parsers
--------------
+TODO.