Re: One Resource to multiple views in different locations

2016-07-11 Thread vkum14
I guess what Shivika is referring to as view is actually Script:
In sling request, first resource is resolved and sling:resourceType property
in that node is using by ServletResolver to identify the best script in the
folder on path of sling:resourceType property value. Which actually results
into one to one mapping between a component and the folder which contains
the script. Is there a way where-in sling:resourceType can be an array in
defined sequence of folders to be used by ServletResolver to find the
script? Or any other idea might be ResourceMerger?

Hope that helps!



--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/One-Resource-to-multiple-views-in-different-locations-tp4061093p4062395.html
Sent from the Sling - Users mailing list archive at Nabble.com.


[ANN] Apache Sling Scripting Thymeleaf 1.0.0

2016-07-11 Thread Oliver Lietz
The Apache Sling team is pleased to announce the release of Apache Sling 
Scripting Thymeleaf 1.0.0

Apache Sling is a web framework that uses a Java Content Repository, such as 
Apache Jackrabbit, to store and manage content. Sling applications use either 
scripts or Java servlets, selected based on simple name conventions, to 
process HTTP requests in a RESTful way.

Thymeleaf is a modern server-side Java template engine for both web and 
standalone environments. Thymeleaf's main goal is to bring elegant natural 
templates to your development workflow — HTML that can be correctly displayed 
in browsers and also work as static prototypes, allowing for stronger 
collaboration in development teams.

http://www.thymeleaf.org

Sling Scripting Thymeleaf is the scripting engine for Thymeleaf templates:

 * Supporting all of Thymeleaf's extension points: TemplateResolvers, 
MessageResolvers, Dialects, LinkBuilders, DecoupledTemplateLogicResolver, 
CacheManager and EngineContextFactory
 * SlingResourceTemplateResolver customizable through TemplateModeProvider
 * ResourceBundleMessageResolver backed by ResourceBundleProvider from Sling 
i18n customizable through optional AbsentMessageRepresentationProvider
 * PatternTemplateModeProvider supporting Pattern configurations for all 
template modes (HTML, XML, TEXT, JAVASCRIPT, CSS and RAW)
 * SlingDialect
 * Thymeleaf's TemplateEngine registered as OSGi Service (ITemplateEngine) for 
direct use

https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html

This release is available from http://sling.apache.org/site/downloads.cgi

Building from verified sources is recommended, but convenience binaries are 
also available via Maven:


  org.apache.sling
  org.apache.sling.scripting.thymeleaf
  1.0.0


Release Notes:

Bug
 * [SLING-5351] - Thymeleaf fails loading version from properties

Improvement
 * [SLING-5518] - Get resource resolver from bindings by using 
SlingBindings.RESOLVER

New Feature
 * [SLING-5663] - Make Thymeleaf TemplateEngine available as service

Task
 * [SLING-4884] - remove embedded CaptureResponseWrapper
 * [SLING-5075] - Upgrade Thymeleaf to 3.0
 * [SLING-5685] - Upgrade Commons IO to 2.5

Enjoy!

-The Sling team