Add sample for changing tempaltes.
Add sample about changing template cache.