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

Secure page (HTTPS)

%{ appname = play.Play.configuration.getProperty("application.name") }% This ${appname} Play! Web App is intended for testing &{'testmodule'} module

This page is supposed to have sensitive data and for that reason is secure.

Try to insecure index and the page shall switch to insecure scheme.
insecure index

#{ifnot session.get("username").equals("admin")}

Try to login and the page still shall be in secure scheme.
login

#{/ifnot}

Try InfoPlay, the scheme still shall be secure. InfoPlay