https://github.com/btd/scala-jade
Almost full port of javascript jade to scala
https://github.com/btd/scala-jade
Last synced: over 1 year ago
JSON representation
Almost full port of javascript jade to scala
- Host: GitHub
- URL: https://github.com/btd/scala-jade
- Owner: btd
- License: apache-2.0
- Created: 2013-05-24T10:58:30.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-29T11:00:53.000Z (about 13 years ago)
- Last Synced: 2025-01-10T20:45:24.321Z (over 1 year ago)
- Language: JavaScript
- Size: 363 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Scala Jade
==========
Port of original javascript jade to scala.
It translate jade file to scala source file that you can invoke in your code as usual scala code.
How to run and play with it
===========================
See `main.scala` how i generate test cases from jade files.
In short it is:
```scala
import com.github.btd.jade._
Jade.sourceLoader = new FileSourceLoader("basedir" :: Nil)
val (filename, jadeText) = Jade.sourceLoader.getInput("jadefile.jade")
println(new Compiler(new Parser(jadeText, filename).parse, true).compile)
```
Contributing
============
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution (make sensitive changes)
* Discuss with me, if your changes are big
* Please try not to mess with the build files, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
* By default i suppose that contributor agreed with Apache License and Individual Contributor License Agreement (http://www.apache.org/licenses/icla.txt).
License
=======
Copyright (c) 2013 Denis Bardadym. See LICENSE.txt for further details.