class Nydp::Html::Plugin

Public Instance Methods

base_path() click to toggle source
# File lib/nydp/html.rb, line 18
def base_path ; relative_path "../lisp/" ; end
load_rake_tasks() click to toggle source
# File lib/nydp/html.rb, line 20
def load_rake_tasks ; end
loadfiles() click to toggle source
# File lib/nydp/html.rb, line 22
def loadfiles
  Dir.glob(relative_path '../lisp/html-*.nydp').sort
end
name() click to toggle source
# File lib/nydp/html.rb, line 12
def name ; "Nydp/HTML plugin" ; end
relative_path(name) click to toggle source
# File lib/nydp/html.rb, line 14
def relative_path name
  File.expand_path(File.join File.dirname(__FILE__), name)
end
setup(ns) click to toggle source
# File lib/nydp/html.rb, line 30
def setup ns
  Symbol.mk("textile-to-html",  ns).assign(Nydp::Html::TextileToHtml.instance)
  Symbol.mk("haml-to-html",     ns).assign(Nydp::Html::HamlToHtml.instance)
  Symbol.mk("percent-encode",   ns).assign(Nydp::Html::PercentEncode.instance)
end
testfiles() click to toggle source
# File lib/nydp/html.rb, line 26
def testfiles
  Dir.glob(relative_path '../lisp/tests/**/*.nydp')
end