Spring and Freemarker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Spring and Freemarker

Jack.Tang
Hi list,

I am now working on a project using spring framework and freemarker. And i encounter a problem about <compress> tag in freemarker. The freemarker doc said
" Specify the transform parameter single_line = true to always compress to a single space instead of a line break."

And i did set "single_line=true" in Shared variables. In spring it looked like:
  <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
    <property name="templateLoaderPath" value="/"/>
    <property name="freemarkerVariables">
        <props>
          <prop key="single_line">true</prop>
        </props>
    </property>
  </bean>

But still it compressed while spaces using line break. What I missed?

Thanks
/Jack