🗊Презентация Spring teplates. Thymeleaf & spring framework

Нажмите для полного просмотра!
Spring teplates. Thymeleaf & spring framework, слайд №1Spring teplates. Thymeleaf & spring framework, слайд №2Spring teplates. Thymeleaf & spring framework, слайд №3Spring teplates. Thymeleaf & spring framework, слайд №4Spring teplates. Thymeleaf & spring framework, слайд №5Spring teplates. Thymeleaf & spring framework, слайд №6Spring teplates. Thymeleaf & spring framework, слайд №7Spring teplates. Thymeleaf & spring framework, слайд №8Spring teplates. Thymeleaf & spring framework, слайд №9Spring teplates. Thymeleaf & spring framework, слайд №10Spring teplates. Thymeleaf & spring framework, слайд №11Spring teplates. Thymeleaf & spring framework, слайд №12Spring teplates. Thymeleaf & spring framework, слайд №13Spring teplates. Thymeleaf & spring framework, слайд №14Spring teplates. Thymeleaf & spring framework, слайд №15Spring teplates. Thymeleaf & spring framework, слайд №16Spring teplates. Thymeleaf & spring framework, слайд №17Spring teplates. Thymeleaf & spring framework, слайд №18Spring teplates. Thymeleaf & spring framework, слайд №19Spring teplates. Thymeleaf & spring framework, слайд №20Spring teplates. Thymeleaf & spring framework, слайд №21Spring teplates. Thymeleaf & spring framework, слайд №22Spring teplates. Thymeleaf & spring framework, слайд №23

Вы можете ознакомиться и скачать презентацию на тему Spring teplates. Thymeleaf & spring framework. Доклад-сообщение содержит 23 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





Spring Teplates
Thymeleaf & Spring framework
Описание слайда:
Spring Teplates Thymeleaf & Spring framework

Слайд 2





History
Описание слайда:
History

Слайд 3





Servlets
Hello!
Описание слайда:
Servlets Hello!

Слайд 4





Servlets
Hello!
Описание слайда:
Servlets Hello!

Слайд 5





Java Servlet-JSP Architecture
Описание слайда:
Java Servlet-JSP Architecture

Слайд 6





Templates
Описание слайда:
Templates

Слайд 7





Template – document or parts of document with basic configuration.
Описание слайда:
Template – document or parts of document with basic configuration.

Слайд 8





Spring templates.
Apache Velocity
FreeMarker
Rythm
Thymeleaf
Описание слайда:
Spring templates. Apache Velocity FreeMarker Rythm Thymeleaf

Слайд 9





Thymeleaf.
Thymeleaf integration with Spring framework.
Описание слайда:
Thymeleaf. Thymeleaf integration with Spring framework.

Слайд 10





Custom properties
Core is a DOM processing engine.
It is based on XML tags and attributes.
XML/Valid XML/XHTML/Valid XHTML/HTML5/Legacy HTML5 processor.
Allows a fast processing of templates by intelligent caching of parsed files.
Not complex syntax.
Описание слайда:
Custom properties Core is a DOM processing engine. It is based on XML tags and attributes. XML/Valid XML/XHTML/Valid XHTML/HTML5/Legacy HTML5 processor. Allows a fast processing of templates by intelligent caching of parsed files. Not complex syntax.

Слайд 11





Syntax compare
FreeMarker syntax:
<table>
  <#list animals as animal> 
   <#if animals.python.price != 0>
   <tr>    <td>${animal.name}<td>${animal.price} 
   </tr>
   </#if>
  </#list>
</table>
Описание слайда:
Syntax compare FreeMarker syntax: <table> <#list animals as animal> <#if animals.python.price != 0> <tr> <td>${animal.name}<td>${animal.price} </tr> </#if> </#list> </table>

Слайд 12





Syntax compare
Описание слайда:
Syntax compare

Слайд 13





Integration with Spring framework
Spring application context:
<bean id="templateResolver"
      class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
    <property name="prefix" value="/WEB-INF/templates/" />
    <property name="suffix" value=".html" />
    <property name="templateMode" value="HTML5" />
</bean>

<bean id="templateEngine"
      class="org.thymeleaf.spring4.SpringTemplateEngine">
    <property name="templateResolver" ref="templateResolver" />
</bean>
Html file template:
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
Описание слайда:
Integration with Spring framework Spring application context: <bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"> <property name="prefix" value="/WEB-INF/templates/" /> <property name="suffix" value=".html" /> <property name="templateMode" value="HTML5" /> </bean> <bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine"> <property name="templateResolver" ref="templateResolver" /> </bean> Html file template: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

Слайд 14





Standard dialect
Описание слайда:
Standard dialect

Слайд 15


Spring teplates. Thymeleaf & spring framework, слайд №15
Описание слайда:

Слайд 16





Dialect extension:
Dialect extension:

<bean id="templateEngine"
      class="org.thymeleaf.spring4.SpringTemplateEngine">
    <property name="templateResolver" ref="templateResolver" />
	<property name="additionalDialects">
    <set>
       <bean class="org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect"/>
    </set>
    </property>
</bean>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:sec=“http://www.thymeleaf.org/thymeleaf-extras-springsecurity4”
      xmlns:th="http://www.thymeleaf.org">
Описание слайда:
Dialect extension: Dialect extension: <bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine"> <property name="templateResolver" ref="templateResolver" /> <property name="additionalDialects"> <set> <bean class="org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect"/> </set> </property> </bean> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:sec=“http://www.thymeleaf.org/thymeleaf-extras-springsecurity4” xmlns:th="http://www.thymeleaf.org">

Слайд 17





Messages internationalization
Application context:
<bean id="messageSource“ class="org.springframework.context.support.ResourceBundleMessageSource">
    <property name="basename" value=“classpath:messages" />
</bean>
Class path:
Описание слайда:
Messages internationalization Application context: <bean id="messageSource“ class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename" value=“classpath:messages" /> </bean> Class path:

Слайд 18





Fragmentation
footer.html
...
<div th:fragment=“ftr">
    Footer
</div>
<div id=“copyrights">
 copyrights
</div>
...
Описание слайда:
Fragmentation footer.html ... <div th:fragment=“ftr"> Footer </div> <div id=“copyrights"> copyrights </div> ...

Слайд 19





Usage Examples
Object expression:
Today is: <span th:text="${#calendars.format(today,'dd MMMM yyyy')}">11 March 2016</span>
Описание слайда:
Usage Examples Object expression: Today is: <span th:text="${#calendars.format(today,'dd MMMM yyyy')}">11 March 2016</span>

Слайд 20





Default expression:
Default expression:
<span th:text=“${value}?: 'no value specified'">Some value</span>
Описание слайда:
Default expression: Default expression: <span th:text=“${value}?: 'no value specified'">Some value</span>

Слайд 21





Local variable:
Local variable:
<div th:with="firstPer=${persons[0]},secondPer=${persons[1]}">
<span th:text="${secondPer.name}">Some Name</span>.
</div>
Описание слайда:
Local variable: Local variable: <div th:with="firstPer=${persons[0]},secondPer=${persons[1]}"> <span th:text="${secondPer.name}">Some Name</span>. </div>

Слайд 22





Summary
Advatages:
Java template engine for XML, XHTML and HTML5.
Works both in web and non-web (offline) environments. No hard dependency on the Servlet API.
Several template modes: XML, XHTML 1.0 and 1.1,  HTML5:
Internationalization support.
Parsed template cache
Is extensible
Not very complex in usage
Many documentation
Описание слайда:
Summary Advatages: Java template engine for XML, XHTML and HTML5. Works both in web and non-web (offline) environments. No hard dependency on the Servlet API. Several template modes: XML, XHTML 1.0 and 1.1, HTML5: Internationalization support. Parsed template cache Is extensible Not very complex in usage Many documentation

Слайд 23





The End.
The End.
Описание слайда:
The End. The End.



Похожие презентации
Mypresentation.ru
Загрузить презентацию