play2-scalate-plugin

将Scalate与Play Framework集成的插件。(Plugin that integrates Scalate with PlayFramework)

  • 所有者: kryptt/play2-scalate-plugin
  • 平台: Linux, Mac, Solaris, Windows
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

play2-scalate-plugin

Plugin that integrates Scalate with PlayFramework

The plugin is divided in two parts:

"net.kindleit" %% "play2-scalate-compiler" % "0.1-SNAPSHOT"
"net.kindleit" %% "play2-scalate-plugin" % "0.1-SNAPSHOT"

The compiler adds sbt tasks to precompile scalate templates into Play! compatible template files, and the plugin exports
the required TemplateEngine so that the compiled code can render properly (this is due to a current limitation in scalate with help we can make this plugin go away all together)

The plugin is published via OSS Sonatype to maven central.

To use the compiler, add the following lines to plugins.sbt (or the Build.scala):

addSbtPlugin("net.kindleit" %% "play2-scalate-compiler" % "0.1-SNAPSHOT")

And add

val project = play.Project(...).settings(ScalateSettings.scalateSettings)

to register the required source Generators.

For the plugin, add the following dependency in your Build.scala

val appDependencies = Seq(
  "net.kindleit" %% "play2-scalate-plugin" % "0.1-SNAPSHOT"
)

And register the plugin via conf/play.plugins

300:net.kindleit.scalate.ScalatePlugin

And your all set.

You can have the following infrastructure:

/app/views/index.jade
/app/views/school.scaml

etc...

Happy hacking!

主要指標

概覽
名稱與所有者kryptt/play2-scalate-plugin
主編程語言Scala
編程語言Scala (語言數: 1)
平台Linux, Mac, Solaris, Windows
許可證
所有者活动
創建於2013-04-03 02:26:21
推送於2013-04-06 01:43:44
最后一次提交2013-04-05 20:43:43
發布數0
用户参与
星數12
關注者數5
派生數3
提交數10
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?