add template and context demo