Domanda

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!

È stato utile?

Soluzione

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>

Altri suggerimenti

The tags in Play framework are usually in

app/views/tags

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

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top