Skip to content

karad/play2-short-filtr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short filter module for Play2!

Description

Short filter module for Play2! is a Play framework 2.0 plugin that gives you an easy way to filter some text. @format.raw("STRING") can be written as @r("STRING").

Usage

1. Install the module dependency

Edit your play project file project/Build.scala and adjust the following settings

    val appDependencies = Seq(
      "jp.greative" % "play2-short-filtr_2.9.1" % "0.1"
      // Add your project dependencies here,
    )

    val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
      resolvers += "Greative Repository" at "https://github.com/karad/maven-repo/raw/master/release/"
      // Add your own project settings here      
    )

2. Insert your view template

you can escape "{" , "}" and more.

@import tags._

@main() {
    
    @r("{")
        OUTPUT
    @r("}")

}

output is

{
    OUTPUT
}

Licence

This software is licensed under the Apache 2 license, quoted below.

Copyright 2012 Greative (http://greative.jp).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Short filter module for Play2!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages