javaplayframeworkplayframework-1.x

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!


Solution

  • 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>