Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play Framework config value in view

How can I access the value application.name from conf/application.conf in a view?

like image 764
Ryan Avatar asked Oct 10 '11 18:10

Ryan


1 Answers

You can use following code sample to do so:

${play.configuration['application.name']}

Also see http://groups.google.com/group/play-framework/browse_thread/thread/1412ca8fc3edd22f

like image 148
Oliver Sauder Avatar answered Oct 12 '22 01:10

Oliver Sauder