Sun 2008-01-13
( bl )
I’m testing my new blog. It’s very small (318 lines of Ruby code, about 130 lines of CSS), using Camping and Textile.
The source code and the style sheet are Public Domain.
I’m testing my new blog. It’s very small (318 lines of Ruby code, about 130 lines of CSS), using Camping and Textile.
The source code and the style sheet are Public Domain.
Schicker kleiner blokk.. Viel Erfolg beim Füllen! mfg Daniel
<p>Dein jetziger Code sieht so aus:</p>
<p><code>def view
_post @post, true
h2 'Comments'
for c in @comments
div.comment do
div.body { self << RedCloth.new(c.body, [:filter_html, :filter_styles]).to_html }
timestamp = post.created_at.strftime('%H:%M on %A, %Y-%m-%d')
div.username "#{c.username} wrote this at #{timestamp}"
a 'Delete', :href => R(Shoot, c), :onclick => "return confirm('Sure?');" if logged_in?
end
end
_comment_form @post
end</code></p>
Zeile 7 müsste aber:
<p><code>timestamp = c.created_at.strftime('%H:%M on %A, %Y-%m-%d')</code></p>
<p>lauten.</p>
hey danke :D ist gefixt. statt @<code>@ solltest du besser @<pre>@ benutzen.
h1. A <b>bold</b> man
h1. A <b>bold</b> man
<big>Test</big>
another test
another test, IE7 this time
another test, Opera 9 this time
test test test
Testie
1
1
1
1
1
1