# Copyright 2008-2009 Wincent Colaiuta
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require 'wikitext/string'

module Wikitext
  class TemplateHandler

    # tested with Rails 2.2.2: the API has now changed so many times that I'm no longer going to support older versions of Rails
    def self.call template
      'template.source.w'
    end
  end
end

# Copyright 2008-2009 Wincent Colaiuta
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require 'wikitext/string'

module Wikitext
  class TemplateHandler
    def self.call template
      'template.source.w'
    end
  end
end

ActionView::Template.register_template_handler :wikitext, Wikitext::TemplateHandler

Add back template handler registration
Add back template handler registration

In copying over the fix I inadvertantly ripped out a crucial line
required for the template handler to take effect.

Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>
