monda
monda

Reputation: 3915

Play framework: Edit welcome tag

I am Play framework beginner!. started play version 1.2.5.

i am following getting started guide here

When i see helloworld/app/views/Application/index file i see the tag

#{welcome /}

which produces welcome screen content .

now i need to change the content of that tag..

where i need to edit the tag content .? please help me!

Upvotes: 1

Views: 128

Answers (3)

jacky
jacky

Reputation: 679

If there is no welcome.html in the project, maybe you can try to find the welcome.html in the folder where the play framework is installed.
And the path maybe like xxxxx\play-1.3.3\framework\templates\tags.

Upvotes: 0

pubsy
pubsy

Reputation: 206

The tags in Play framework are usually in

app/views/tags

folder. This one has to be called welcome.html.

Upvotes: 0

sdanzig
sdanzig

Reputation: 4500

You don't need to change the content of the tag. It's just a convenience thing to auto-generate a welcome message. You can remove it and replace it with:

<h2>See, I changed the tag!</h2>

Here's the whole index.html, modified:

#{extends 'main.html' /}
#{set title:'Home' /}

<h2>See, I changed the tag!</h2>

Upvotes: 1

Related Questions