Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the server side comment tag in scala templates in play framework?

I need to comment my code server side ( not rendered to client) in scala templates in play framework. What is the format of this tag?

like image 801
ace Avatar asked Jun 18 '11 18:06

ace


People also ask

What is Scala template?

A Play Scala template is a simple text file that contains small blocks of Scala code. Templates can generate any text-based format, such as HTML, XML or CSV. The template system has been designed to feel comfortable to those used to working with HTML, allowing front-end developers to easily work with the templates.

Which component is responsible for building play framework?

Play Framework is an open-source web application framework which follows the model–view–controller (MVC) architectural pattern. It is written in Scala and usable from other programming languages that are compiled to JVM bytecode, e.g. Java.


1 Answers

The documentation does not explicitly say, but as the template engine is inspired by ASP.net Razor, I would guess it uses the same syntax, which is

@* comment here *@

Note the end comment is done with a closing @ symbol.

like image 186
Codemwnci Avatar answered Sep 22 '22 15:09

Codemwnci