Removed debug code.
Missing user_id parameter to the discard draft method.
Removed the call to render so the whole View object is passed into the layout. This is helpful is sections are appended to and want to be used in the main layout template.
Trim any extra slashes from the slug before checking.
Allowed dots in the slug.
Added a render method to the block, which call the block type, which uses the template.
Added a preRender method to the layout, so that it can adjust or add to the template data accordingly.