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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?