Slightly Equivelant to include /libs/foundation/global.jsp | Community
Skip to main content
Tyler_Maynard
Level 4
October 16, 2015
Solved

Slightly Equivelant to include /libs/foundation/global.jsp

  • October 16, 2015
  • 3 replies
  • 3553 views

Hello All,

Forgive me, as I am coming from a heavy front-end world and am now shooting into AEM development mode!

I am trying to pick up Slightly as we are starting from scratch with our AEM project. 

Is there a Slightly Equivilent to <%@include file="/libs/foundation/global.jsp"%>

Would I do the same thing but with the slightly include? For example:

    
<section data-sly-include="/libs/foundation/global.jsp"></section>

Do I need this to bring my components into scope with the global objects?

Thanks, and sorry if my questions are geared towards newbies.

-Tyler

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by LeeKl1

No, there is no equivalent import necessary in Sightly.

All of the objects that are initialized in the JSP environment by the global.jsp import are already present and initialized in the Sightly environment.

See this page & heading: http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context Objects

3 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

No need of including global.jsp for sightly

LeeKl1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

No, there is no equivalent import necessary in Sightly.

All of the objects that are initialized in the JSP environment by the global.jsp import are already present and initialized in the Sightly environment.

See this page & heading: http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context Objects

Adobe Employee
October 16, 2015

No.  There is no need for an include like the global.jsp in Sightly. 

All of the Context Objects that are initialized by the global.jsp in the JSP environment are already present and initialized in the Sightly environment.  They have the same names and functionality.

See this page in the documentation:  http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context%20Objects