Winston Chen
Winston Chen

Reputation: 6879

How do I add in a new template for my lift project (including url setups)?

I just created a hello-world project with maven command in the book:

mvn archetype:generate -U \ 
-DarchetypeGroupId=net.liftweb \ 
-DarchetypeArtifactId=lift-archetype-blank \ 
-DarchetypeVersion=1.0 \ 
-DgroupId=demo.helloworld \ 
-DartifactId=helloworld \ 
-Dversion=1.0-SNAPSHOT

And as instructed, I start it with:

mvn jetty:run

Everything works fine until the moment that I would like to add in another template besides:

my-project/src/main/webapp/index.html

For example, I put pricing page (pricing.html) just beside index.html to be "my-project/src/main/webapp/pricing.html". But the following url does not seem to work for me: http://localhost:8080/pricing

Am I missing anything here?

Upvotes: 0

Views: 98

Answers (1)

Kelsey Gilmore-Innis
Kelsey Gilmore-Innis

Reputation: 1010

You need to add it to Boot.scala: http://simply.liftweb.net/index-3.2.html

Upvotes: 2

Related Questions