Approach for modularizing template content