Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
23 слайда
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
1.17 MB
Просмотров:
71
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![Spring Teplates Thymeleaf amp](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img0.jpg)
Содержание слайда: Spring Teplates
Thymeleaf & Spring framework
№2 слайд![History](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img1.jpg)
Содержание слайда: History
№3 слайд![Servlets Hello!](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img2.jpg)
Содержание слайда: Servlets
Hello!
№4 слайд![Servlets Hello!](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img3.jpg)
Содержание слайда: Servlets
Hello!
№5 слайд![Java Servlet-JSP Architecture](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img4.jpg)
Содержание слайда: Java Servlet-JSP Architecture
№6 слайд![Templates](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img5.jpg)
Содержание слайда: Templates
№7 слайд![Template document or parts of](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img6.jpg)
Содержание слайда: Template – document or parts of document with basic configuration.
№8 слайд![Spring templates. Apache](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img7.jpg)
Содержание слайда: Spring templates.
Apache Velocity
FreeMarker
Rythm
Thymeleaf
№9 слайд![Thymeleaf. Thymeleaf](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img8.jpg)
Содержание слайда: Thymeleaf.
Thymeleaf integration with Spring framework.
№10 слайд![Custom properties Core is a](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img9.jpg)
Содержание слайда: 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](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img10.jpg)
Содержание слайда: 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](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img11.jpg)
Содержание слайда: Syntax compare
№13 слайд![Integration with Spring](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img12.jpg)
Содержание слайда: 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](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img13.jpg)
Содержание слайда: Standard dialect
№15 слайд![](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img14.jpg)
№16 слайд![Dialect extension Dialect](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img15.jpg)
Содержание слайда: 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](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img16.jpg)
Содержание слайда: 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 ...](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img17.jpg)
Содержание слайда: Fragmentation
footer.html
...
<div th:fragment=“ftr">
Footer
</div>
<div id=“copyrights">
copyrights
</div>
...
№19 слайд![Usage Examples Object](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img18.jpg)
Содержание слайда: Usage Examples
Object expression:
Today is: <span th:text="${#calendars.format(today,'dd MMMM yyyy')}">11 March 2016</span>
№20 слайд![Default expression Default](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img19.jpg)
Содержание слайда: Default expression:
Default expression:
<span th:text=“${value}?: 'no value specified'">Some value</span>
№21 слайд![Local variable Local variable](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img20.jpg)
Содержание слайда: 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](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img21.jpg)
Содержание слайда: 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.](/documents_6/67263c0f3da4f116c570c8cd7bf03583/img22.jpg)
Содержание слайда: The End.
The End.