Document method

Fix #4366 (support dynamic_base templates)