[Ur] Library for reading external files

Taru Karttunen taruti at taruti.net
Mon Jan 9 04:02:04 EST 2012


Hello

I wrote a tiny library to serve external files from Ur/Web. It can be
used as:

fun css () : transaction page =
  blob <- File.read "style.css";
  returnBlob blob (blessMime "text/css")

on error an empty blob is returned.

It is available from https://bitbucket.org/taruti/urfile

- Taru Karttunen



More information about the Ur mailing list