Package net.sourceforge.pebble.api.decorator

Examples of net.sourceforge.pebble.api.decorator.PageDecoratorContext


    HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
    AbstractBlog abstractBlog = (AbstractBlog) request.getAttribute(Constants.BLOG_KEY);

    try {
      if (abstractBlog instanceof Blog) {
        PageDecoratorContext context = new PageDecoratorContext(request);
        Blog blog = (Blog) abstractBlog;
        if (PAGE_DECORATOR_HEAD.equals(plugin)) {
          for (PageDecorator decorator : blog.getPageDecorators()) {
            decorator.decorateHead(pageContext.getOut(), context);
          }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.api.decorator.PageDecoratorContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.