<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          play2-groovy-templatesPlay的Groovy模板

          聯(lián)合創(chuàng)作 · 2023-09-29 02:11

          play2-groovy-templates 是一個為 Play Framework 2 提供 Groovy 編寫模板的插件。

          有關模板引擎的更多信息和文檔,可以在這里找到:

          為了使用插件,請確保您的SBT版本中具有以下依賴項/解析器:

          • 依賴項: "io.bernhardt" %% "groovy-templates-plugin" % "1.6.4-SNAPSHOT"
          • 解析器:
            • "Sonatype OSS Repository" at "https://oss.sonatype.org/content/groups/public"

          為了使預編譯在PROD模式下正常工作,您需要將groovy模板插件掛接到sourceGenerators構建的中,例如:

          import eu.delving.templates.Plugin._
          
          val main = PlayProject(appName, appVersion, appDependencies, settings = Defaults.defaultSettings ++ groovyTemplatesSettings).settings(
          
            sourceGenerators in Compile <+= groovyTemplatesList,
          
          )
          

          project/plugins.sbt需要包含Groovy Templates SBT插件:

          resolvers ++= Seq(
             "Sonatype OSS Repository" at "https://oss.sonatype.org/content/groups/public"
          )
          
          addSbtPlugin("eu.delving" %% "groovy-templates-sbt-plugin" % "1.6.4-SNAPSHOT")
          

          (注意:這將在編譯時掃描模板,并生成一個列表,該列表包含在構建中,并在PROD模式下用于預編譯模板。我們需要這樣做,因為Groovy模板不是編譯的源文件)

          瀏覽 21
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  豆花无码视频一区二区 | 五月天啪啪网 | 欧美A级黄色片 | 久久夜色国产精品 | 91cao |