Git Product home page Git Product logo

restas-directory-publisher's People

Contributors

archimag avatar dmitrys99 avatar filonenko-mikhail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

restas-directory-publisher's Issues

Does not work with tagged restas

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.

Sub directories inside STATIC dir

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.

Rendering fails

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.