$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' require 'mustache' class TemplatePartial < Mustache self.path = File.dirname(__FILE__) def title "Welcome" end end if $0 == __FILE__ puts TemplatePartial.to_html end