org.sonar.api.web
Class PageDecoration

java.lang.Object
  extended by org.sonar.api.web.AbstractRubyTemplate
      extended by org.sonar.api.web.PageDecoration
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension

public abstract class PageDecoration
extends AbstractRubyTemplate
implements ServerExtension

Adds content to HTML pages. A PageDecoration is a Rails template (html.erb file) that executes content_for blocks on predefined locations :

Example of template:

 <% content_for :script do %>
   
 <% end %>

 <% content_for :footer do %>
  
this is my footer
<% end %>

Since:
3.3

Constructor Summary
PageDecoration()
           
 
Method Summary
 
Methods inherited from class org.sonar.api.web.AbstractRubyTemplate
getTemplate, getTemplatePath, loadTemplateFromCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageDecoration

public PageDecoration()


Copyright © 2009–2015 SonarSource. All rights reserved.