consumeToEndElementAndPopBodyElement(context);
}
private void block(AssemblerContext context)
{
final BlockToken token = context.next(BlockToken.class);
context.add(new PageAssemblyAction()
{
public void execute(PageAssembly pageAssembly)
{
String blockId = token.getId();
ComponentPageElement element = pageAssembly.activeElement.peek();
String description = blockId == null ? interner.format("Anonymous within %s", element.getCompleteId())
: interner.format("%s within %s", blockId, element.getCompleteId());
BlockImpl block = new BlockImpl(token.getLocation(), description);
if (blockId != null)
element.addBlock(blockId, block);
// Start directing template content into the Block