public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
added js notification of commenting

git-svn-id: http://svn.techno-weenie.net/projects/mephisto@612 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Tue Jan 10 21:36:46 -0800 2006
commit  748a1b219310b4c522365f6de932e9ef0b8f79c1
tree    e3210c44beaf129e020ba873e2387efdae098648
parent  1a3ae78d7cc49c56807e0938a4d8bc99d59904cb
...
63
64
65
 
66
67
68
...
63
64
65
66
67
68
69
0
@@ -63,6 +63,7 @@ require 'time_ext'
0
 Liquid::Template.register_filter(Mephisto::Filter)
0
 Liquid::Template.register_block('textile', Mephisto::Textile)
0
 Liquid::Template.register_block('commentform', Mephisto::CommentForm)
0
+Liquid::Template.register_block('head', Mephisto::Head)
0
 
0
 ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update \
0
   :standard => '%B %d, %Y @ %I:%M%p'
...
1
2
3
4
 
 
5
...
1
2
 
3
4
5
6
0
@@ -1,3 +1,4 @@
0
 require 'mephisto/filter'
0
 require 'mephisto/textile'
0
-require 'mephisto/comment_form'
0
\ No newline at end of file
0
+require 'mephisto/comment_form'
0
+require 'mephisto/head'
0
\ No newline at end of file
...
3
4
5
6
7
8
9
 
 
 
 
10
11
12
...
3
4
5
 
 
 
 
6
7
8
9
10
11
12
0
@@ -3,10 +3,10 @@ task :init do
0
   ENV['SHARED_PATH'] = '../../shared' unless ENV['SHARED_PATH']
0
   ENV['RAILS_PATH'] ||= File.join(ENV['SHARED_PATH'], 'rails')
0
   puts 'copying files...'
0
- cp "#{ENV['SHARED_PATH']}/database.yml", 'config'
0
- cp "#{ENV['SHARED_PATH']}/dispatch.fcgi", 'public'
0
- cp "#{ENV['SHARED_PATH']}/bg-lg.jpg", 'public/stylesheets'
0
- cp "#{ENV['SHARED_PATH']}/tw.css", 'public/stylesheets'
0
+ cp "#{ENV['SHARED_PATH']}/database.yml", 'config'
0
+ cp "#{ENV['SHARED_PATH']}/dispatch.fcgi", 'public'
0
+ cp "#{ENV['SHARED_PATH']}/tw_home/bg-lg.jpg", 'public/stylesheets'
0
+ cp "#{ENV['SHARED_PATH']}/tw_home/tw.css", 'public/stylesheets'
0
 
0
   puts 'setting permissions...'
0
   chmod 0600, 'config/database.yml'
...
3
4
5
6
 
 
 
 
 
 
 
 
 
 
 
7
8
9
...
3
4
5
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -3,7 +3,17 @@
0
 layout:
0
   id: 1
0
   name: layout
0
- data: "<html><body><h1>This is the layout</h1>{{ content_for_layout }}</body></html>"
0
+ data: |-
0
+ <html>
0
+ {% head %}
0
+ <title>test</title>
0
+ {{ head.feed }}
0
+ {% endhead %}
0
+ <body>
0
+ <h1>This is the layout</h1>
0
+ {{ content_for_layout }}
0
+ </body></html>
0
+
0
 home:
0
   id: 2
0
   name: home
...
32
33
34
 
 
 
 
 
35
36
37
...
32
33
34
35
36
37
38
39
40
41
42
0
@@ -32,6 +32,11 @@ class MephistoControllerTest < Test::Unit::TestCase
0
     assert_equal [articles(:welcome), articles(:another)], assigns(:articles)
0
   end
0
 
0
+ def test_should_show_correct_feed_url
0
+ get :list, :tags => []
0
+ assert_tag :tag => 'link', :type => 'application/atom+xml', :href => '/feed/atom.xml'
0
+ end
0
+
0
   def test_list_by_tags
0
     get :list, :tags => %w(about)
0
     assert_equal tags(:about), assigns(:tag)

Comments

    No one has commented yet.