1. 21 7月, 2015 2 次提交
  2. 13 7月, 2015 1 次提交
  3. 09 7月, 2015 1 次提交
  4. 08 7月, 2015 3 次提交
  5. 29 6月, 2015 1 次提交
  6. 26 6月, 2015 1 次提交
  7. 19 5月, 2015 1 次提交
  8. 13 5月, 2015 1 次提交
  9. 07 5月, 2015 1 次提交
  10. 22 4月, 2015 1 次提交
    • S
      Add script based templating support · a3159dfb
      Sebastien Deleuze 提交于
      This commit adds support for script based templating. Any templating
      library running on top of a JSR-223 ScriptEngine that implements
      Invocable like Nashorn or JRuby could be used.
      
      For example, in order to render Mustache templates thanks to the Nashorn
      Javascript engine provided with Java 8+, you should declare the following
      configuration:
      
      @Configuration
      @EnableWebMvc
      public class MustacheConfig extends WebMvcConfigurerAdapter {
      
      	@Override
      	public void configureViewResolvers(ViewResolverRegistry registry) {
      		registry.scriptTemplate();
      	}
      
      	@Bean
      	public ScriptTemplateConfigurer configurer() {
      		ScriptTemplateConfigurer configurer = new ScriptTemplateConfigurer();
      		configurer.setEngineName("nashorn");
      		configurer.setScripts("mustache.js");
      		configurer.setRenderObject("Mustache");
      		configurer.setRenderFunction("render");
      		return configurer;
      	}
      }
      
      The XML counterpart is:
      
      <beans>
      	<mvc:annotation-driven />
      
      	<mvc:view-resolvers>
      		<mvc:script-template />
      	</mvc:view-resolvers>
      
      	<mvc:script-template-configurer engine-name="nashorn" render-object="Mustache" render-function="render">
      		<mvc:script location="mustache.js" />
      	</mvc:script-template-configurer>
      </beans>
      
      Tested with:
       - Handlebars running on Nashorn
       - Mustache running on Nashorn
       - React running on Nashorn
       - EJS running on Nashorn
       - ERB running on JRuby
       - String templates running on Jython
      
      Issue: SPR-12266
      a3159dfb
  11. 14 4月, 2015 1 次提交
    • D
      Improve RedirectAttributes reference docs · 463878a0
      David Tombs 提交于
      The use of RedirectAttributes was documented in four places in the
      reference documentation. This commit merges some of the places and links
      properly between them.
      
      Issue: SPR-12759
      463878a0
  12. 31 3月, 2015 1 次提交
  13. 25 3月, 2015 2 次提交
  14. 24 3月, 2015 2 次提交
  15. 07 3月, 2015 1 次提交
    • S
      Fix Admonition syntax · bd6d9745
      Stephane Nicoll 提交于
      The upgrade to a more recent asciidoc format led to a bunch of of
      broken Admonition as the text block now requires four equal signs while
      previous versions tolerated only 3.
      
      Issue: SPR-12791
      bd6d9745
  16. 06 3月, 2015 2 次提交
    • B
      Break down Core and Web chapters in reference doc · 74072237
      Brian Clozel 提交于
      Core and Web chapters are important chapters in the Spring Framework
      reference documentation, and splitting them in multiple files will
      help to evolve the documentation while not creating too many files.
      
      Issue: SPR-12309
      74072237
    • B
      Modularize asciidoc documentation · 0baf228d
      Brian Clozel 提交于
      The reference documentation is now organized in asciidoc bookparts.
      Bookparts sections can be also put in separate files, when their
      size and theme are important enough to justify that.
      
      Documentation Layout:
      ```
      index
        |-- overview
        |
        |-- whats-new
        |
        |-- core
        |   |-- core-beans
        |   |-- core-aop
        |-- testing
        |
        |-- data-access
        |
        |-- web
        |   |-- web-mvc
        |   |-- web-view
        |-- integration
        |
        |-- appendix
            |-- appx-spring-tld
            |-- appx-spring-form-tld
      ```
      
      Supersedes and closes #641
      
      Issue: SPR-12309
      0baf228d