Re: [Cppcms-users] No "\n" on compiled templates
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-11-09 15:17:30
|
>________________________________ > From: Lee Elenbaas <lee...@gm...> >To: cpp...@li... >Sent: Thursday, November 8, 2012 11:33 PM >Subject: Re: [Cppcms-users] No "\n" on compiled templates > > >I wonder why you would want something like this, and the only option i have in mind is to have the app deliver a "minified" html output to the clients. >sadly introducing something like this into the template mechanism can break the ability to render different content types using the same mechanism (consider an app that render html responses, but also uses the same template mechanism to generate text only emails (where \n are important) > Also note that the best minification already exists - gzip compression enabled by default. The NL removal is mostly to make HTML more nice looking. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/> |