Implemented 'cssTemplate as a function' functionality