All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javascript.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 pkg: Option[String] %>
<%@ val baseName: String %>

// eg com.fourSq.ActionConstants

fourSq.namespace("${pkg}");

${pkg.map(_ + ".").getOrElse("") + baseName}Constants = {

  <%=constants.flatMap(const => const.jsValueOption.map{v => "%s: %s".format(const.name, v)}).mkString(",\n") %>

};







© 2015 - 2025 Weber Informatics LLC | Privacy Policy