Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拼写错误: #tag layout 中的实现用的是 bodyContext, 文档中描述的是 bodyContent,不一致 #34

Closed
subchen opened this issue Dec 4, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@subchen
Copy link
Owner

subchen commented Dec 4, 2013

public final class JetTags
{
  public static void layout(JetTagContext ctx, String name)
  {
    String bodyContext = ctx.getBodyContent();
    ctx.getContext().put("bodyContext", bodyContext);

    name = ctx.getPageContext().getAbsolutionName(name);
    JetTemplate template = ctx.getEngine().getTemplate(name);
    template.render(ctx.getContext(), ctx.getWriter());
  }
}

需要修改为 bodyContent, 和文档保持一致。

@ghost ghost assigned subchen Dec 4, 2013
@subchen subchen closed this as completed in a42fca4 Dec 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant