import net.sourceforge.phpeclipse.wiki.builder.BuilderRenderEngine;
import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
+import net.sourceforge.phpeclipse.wiki.preferences.Util;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
-import org.apache.velocity.app.Velocity;
import org.apache.velocity.app.VelocityEngine;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
try {
if (templateFileName == null||templateFileName.equals("")) {
if (completeHTMLPage) {
- appendHeader(buf);
+ appendHeader(buf);
}
StringWriter writer = new StringWriter();
try {
VelocityContext velocityContext = new VelocityContext();
velocityContext.put("content", String.valueOf(writer) );
+ String localCssUrl = Util.getLocalCssUrl(fProject);
+ velocityContext.put("localcss", localCssUrl );
+ String exportCssUrl = Util.getExportCssUrl(fProject);
+ velocityContext.put("exportcss", exportCssUrl );
Template template = ve.getTemplate(fileName);
StringWriter sw = new StringWriter();