org.kohsuke.stapler.jelly.jruby
Class RubyTemplateLanguage

java.lang.Object
  extended by org.kohsuke.stapler.jelly.jruby.RubyTemplateLanguage
Direct Known Subclasses:
ERbLanguage, HamlLanguage

public abstract class RubyTemplateLanguage
extends Object

Ruby template language binding.

Implementations of this is discovered via service-loader mechanism.

Author:
Kohsuke Kawaguchi

Constructor Summary
RubyTemplateLanguage()
           
 
Method Summary
protected abstract  RubyTemplateContainer createContainer(org.jruby.embed.ScriptingContainer container)
          Called to set up this template language binding on the specified scripting container.
protected abstract  String getScriptExtension()
          Defines the file extension, like ".erb", that designates this kind of view type.
protected abstract  Class<? extends AbstractRubyTearOff> getTearOffClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyTemplateLanguage

public RubyTemplateLanguage()
Method Detail

getScriptExtension

protected abstract String getScriptExtension()
Defines the file extension, like ".erb", that designates this kind of view type.


getTearOffClass

protected abstract Class<? extends AbstractRubyTearOff> getTearOffClass()

createContainer

protected abstract RubyTemplateContainer createContainer(org.jruby.embed.ScriptingContainer container)
Called to set up this template language binding on the specified scripting container.



Copyright © 2011. All Rights Reserved.