sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Munteanu <romb...@apache.org>
Subject Re: [Dev][GSoC] How to expose a HTML page using a URL
Date Mon, 04 Jun 2018 19:53:34 GMT
Hi Hasini,

On Tue, 2018-06-05 at 01:06 +0530, Hasini Witharana wrote:
> Hi all,
> 
> I have a html login page (
> https://github.com/apache/sling-whiteboard/pull/14/files#diff-93a9b7f
> d5defb2fca21e9f8dfc553e34).
> I want to host this page in the URL "localhost:8080/auth/login".
> 
> In the POM(
> https://github.com/apache/sling-whiteboard/pull/14/files#diff-51f3947
> 3acfbf62ec7200e7f9b0b4962),
> I am using the below plugin,
> 
> <plugin>
> <groupId>biz.aQute.bnd</groupId>
> <artifactId>bnd-maven-plugin</artifactId>
> </plugin>
> 
> What is the way to do this?

If I understand correctly, you want to add a static HTML file. If that
is the case, the starter-content project should show you how to do
this.

https://github.com/apache/sling-org-apache-sling-starter-content

You can get more information about loading content in Sling at [1]

Hope this helps,

Robert

[1]: https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html

Mime
View raw message