com.atlassian.bamboo.template
Interface TemplateRenderer

All Known Implementing Classes:
BambooFreemarkerManager

public interface TemplateRenderer

Interface to render a template into the output


Method Summary
 java.lang.String render(java.lang.String templatePath, java.util.Map contextParams)
           
 void render(java.lang.String templatePath, java.util.Map contextParams, java.io.Writer writer)
          Render the given template to the given writer
 java.lang.String renderText(java.lang.String text, java.util.Map contextParams)
           
 

Method Detail

render

java.lang.String render(java.lang.String templatePath,
                        java.util.Map contextParams)

renderText

java.lang.String renderText(java.lang.String text,
                            java.util.Map contextParams)

render

void render(@Nullable
            java.lang.String templatePath,
            @Nullable
            java.util.Map contextParams,
            @NotNull
            java.io.Writer writer)
            throws java.io.IOException
Render the given template to the given writer

Parameters:
templatePath - The path of the template
contextParams - The template context params
writer - The writer to write to
Throws:
java.io.IOException - If an error occured while writing to the writer


Copyright © 2010 Atlassian. All Rights Reserved.