add template inheritance and inheritted/nested blocks (js for now)