scala.constants.ssp Maven / Gradle / Ivy
The newest version!
<%
// Copyright 2013 Foursquare Labs Inc. All Rights Reserved.
import com.foursquare.spindle.codegen.runtime.{ScalaConst}
%>
<%@ val constants: Seq[ScalaConst] %>
<%@ val baseName: String %>
object ${baseName}Constants {
#for (const <- constants)
<% val value = const.valueOption.map{v => "val %s: %s = %s".format(const.name, const.renderType.text, v)} %>
<%=value.getOrElse("// %s not rendered, %s not a supported const type".format(const.name, const.renderType.text)) %>
#end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy