Remove extensions namespace

This commit is contained in:
kristi
2012-05-09 12:14:45 -07:00
parent 8435daa598
commit 75c02475be
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ require 'mustache/sinatra'
require 'gollum/frontend/views/layout' require 'gollum/frontend/views/layout'
require 'gollum/frontend/views/editable' require 'gollum/frontend/views/editable'
require 'extensions/toc' require 'toc'
module Precious module Precious
class App < Sinatra::Base class App < Sinatra::Base
@@ -116,7 +116,7 @@ module Precious
@content = @page.formatted_data do @content = @page.formatted_data do
|doc| |doc|
# Insert anchors for table of contents # Insert anchors for table of contents
toc = Gollum::Extensions::Toc_gen.new doc toc = Gollum::Toc_gen.new doc
if (toc_content = toc.generate) if (toc_content = toc.generate)
toc.insert_anchors toc.insert_anchors
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML) @toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
@@ -211,7 +211,7 @@ module Precious
@content = page.formatted_data do @content = page.formatted_data do
|doc| |doc|
# Insert anchors for table of contents # Insert anchors for table of contents
toc = Gollum::Extensions::Toc_gen.new doc toc = Gollum::Toc_gen.new doc
if (toc_content = toc.generate) if (toc_content = toc.generate)
toc.insert_anchors toc.insert_anchors
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML) @toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
+1 -1
View File
@@ -1,4 +1,4 @@
module Gollum::Extensions module Gollum
class Toc_gen class Toc_gen
attr_accessor :header_tags attr_accessor :header_tags