문제

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!

도움이 되었습니까?

해결책

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>

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top