archimag / restas-directory-publisher Goto Github PK
View Code? Open in Web Editor NEWRESTAS module for publishing directories.
License: Other
RESTAS module for publishing directories.
License: Other
I'm using the latest tag of restas, and restas-directory-publisher HEAD does not work with it due to an unexported symbol initialize-module-instance
. What version of restas-directory-publisher should I use? Or should I update restas somehow? I haven't used restas HEAD because it is incompatible with the released version of hunchentoot. Any guidance would be appreciated.
In directory-publisher.lisp, there's a reference to isys:stat
and other related symbols, but no package named ISYS
is defined at that point.
Please consider adding :description, :author and :license information to your ASDF system. This will greatly help Quicklisp users and make it easier for them to report bugs.
More information:
http://blog.quicklisp.org/2015/05/looking-for-more-metadata.html
https://www.quicklisp.org
Hi. I'm trying to use RESTAS as RESTful Backend.
So, I set up my project directory like the below
/
public (This is the STATIC dir published)
public/javascripts
public/javascripts/backbone
public/bower_components/semantic/....
I got an error when I loaded a script in public/javascripts/backbone/
.
This is my script in HTML
file
<script src="javascripts/script.js"></script> ;; load successfully
<script src="javascripts/backbone/script.js"></script> ;; failed.
<script src="bower_components/jquery/jquery.js"></script> ;; failed
And this is my server-side lisp code.
(ql:quickload :swank)
(ql:quickload :restas)
(ql:quickload :cl-who)
(ql:quickload :restas-directory-publisher)
(restas:define-module #:restas.example-1
(:use #:cl))
(in-package #:restas.example-1)
(restas:define-route home (""
:method :get)
#P"view/hello.html")
(restas:mount-module -homedir- (#:restas.directory-publisher)
(:url "/")
(restas.directory-publisher:*directory* #P"public/")
(restas.directory-publisher:*autoindex* t)
)
(restas:start '#:restas.example-1 :port 8080)
I used sub-module you'v made restas-diectory-publisher
to make a static directory.
But It seems that restas-directory-publisher
only can publish files in public/*/*.*
.
It is impossible to load in public/*/*/script.js
or public/*/*/*/script.js
.
I made a quick glance source code and found that restas-directory-publisher
uses Hunchentoot
. It is a hunchentoot problem?
Thanks.
Hello!
It seems that this module is unable to render the index, when autoindex is on. The server return a code 500.
To reproduce the issue just load: "example/homesite.lisp"
Bye!
C.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.