urembed: Ur/Web static content generator
Urembed converts a set of FILEs into the Ur/Web modules. Each Module will contain following functions: val binary : unit -> transaction blob val blobpage : unit -> transaction page val text : unit -> transaction string Additionally, FFI signatures will be provided for JavaScript files. In order to enable this, you have to name your JS functions using the name__type scheme. See README for details. Also, uru project uses this a lot. (NOTE: the interface is not stable. Pleas, fork the Urembed sources before using) The master project (specified with -o FILE.urp) will contain a dictionary version of those functions taking the datatype key as an argument, instead of unit. In order to actually compile the binaries, you have to call make -f FILE.mk CC=.. LD=.. UR_INCLUDE_DIR=.. urp Where FILE.mk is the Makefile, generated by urembed. Example: urembed -o static/Static.urp Style.css Script.js make -C static -f Static.mk CC=gcc LD=ld UR_INCLUDE_DIR=usrlocalincludeurweb urp Note: output directory should exist
Downloads
- urembed-0.5.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.5.0.0, 0.5.0.1 |
---|---|
Dependencies | base (>=4.6 && <4.7), bytestring, cake3, directory, filepath, language-javascript (>=0.5 && <0.6), mime-types, mtl, optparse-applicative, process, syb, text [details] |
License | BSD-3-Clause |
Author | Sergey Mironov |
Maintainer | grrwlf@gmail.com |
Category | Development, Ur/Web |
Home page | http://github.com/grwlf/urembed |
Uploaded | by SergeyMironov at 2013-10-31T08:28:35Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | urembed |
Downloads | 1845 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |