Wondering what exactly in the request chain interprets sightly. Like any conforming java app server would interpret JSP scriptlets, what exactly in the processing chain processes Sightly? Is there a plan to have the interpreter as a pluggable module that can be imported in other app servers like JSP?
Solved! Go to Solution.
Hi
What is Sightly?
Sightly is an HTML templating language, introduced with AEM 6.0. It takes the place of JSP (Java Server Pages) and ESP (ECMAScript Server Pages) as the preferred templating system for HTML. The name “Sightly” (meaning “pleasing to the eye”) highlights its focus on keeping your markup beautiful, and thus maintainable, once made dynamic.
As in all HTML server-side templating systems, a Sightly file defines the output sent to the browser by specifying the HTML itself, some basic presentation logic and variables to be evaluated at runtime.
But, Sightly differs from other templating systems in three main ways:
Sightly aims to reduce the time to market and the total cost of ownership for AEM projects:
Documentation Link:- https://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html
PDF Sightly Component Development :- http://dev.day.com/content/ddc/en/gems/introduction-to-sightly/_jcr_content/par/download/file.res/Si...
Link:- http://www.aemcq5tutorials.com/tutorials/sightly-new-features-vs-jsp-aem/
//Difference between Sightly vs JSP
Link:- http://labs.6dglobal.com/blog/2014-05-22/sightly-vs-handlebars-vs-jsp-comparing-scripting-languages/
//Sightly vs Handlebars vs JSP
PS: we can not use it beyond the scope of AEM as of now.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Hi
What is Sightly?
Sightly is an HTML templating language, introduced with AEM 6.0. It takes the place of JSP (Java Server Pages) and ESP (ECMAScript Server Pages) as the preferred templating system for HTML. The name “Sightly” (meaning “pleasing to the eye”) highlights its focus on keeping your markup beautiful, and thus maintainable, once made dynamic.
As in all HTML server-side templating systems, a Sightly file defines the output sent to the browser by specifying the HTML itself, some basic presentation logic and variables to be evaluated at runtime.
But, Sightly differs from other templating systems in three main ways:
Sightly aims to reduce the time to market and the total cost of ownership for AEM projects:
Documentation Link:- https://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html
PDF Sightly Component Development :- http://dev.day.com/content/ddc/en/gems/introduction-to-sightly/_jcr_content/par/download/file.res/Si...
Link:- http://www.aemcq5tutorials.com/tutorials/sightly-new-features-vs-jsp-aem/
//Difference between Sightly vs JSP
Link:- http://labs.6dglobal.com/blog/2014-05-22/sightly-vs-handlebars-vs-jsp-comparing-scripting-languages/
//Sightly vs Handlebars vs JSP
PS: we can not use it beyond the scope of AEM as of now.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
When you write code in sightly file in .html file, a Java file will be generate with the help of it. That will be done by sightly engine.
Those files can be found here /var/classes/dd8d5f1b-8f16-4378-a712-accecb264070/sightly/1.0.2/apps
When you write JS-USE api, it will be rendered by Rhino engine.
This should give you more insight of sightly:
http://blog.justinedelson.com/2016/01/18/adding-javascript-functions-for-sightly-to-use.html
Views
Replies
Total Likes
Hi All,
Thanks a lot for your inputs here. It gave a good amount of information.
Views
Replies
Total Likes
That's awesome information. Thanks all.
The only issue I have with Sightly is it is very specific to AEM and is not as intuitive as say handlebars js templating or jquery in general. Knowing slightly also doesn't help beyond AEM in contrast to JSP which is understood by any java platform.
Anyways, thanks a lot for the input. This is very helpful.
Views
Replies
Total Likes
I am unable to see any file under /var/classes. any idea why this might be happening ?
Views
Replies
Total Likes
FYI - since labs.6global.com is down, here's a link to the Sightly vs. Handlebars vs. JSP comparison on my personal blog:
https://www.danklco.com/posts/2014/05/22/sightly-vs-handlebars-vs-jsp-comparing-scripting-languages/
Views
Replies
Total Likes
Views
Likes
Replies