Code Monkey home page Code Monkey logo

Comments (6)

leafo avatar leafo commented on May 24, 2024

You can just place css/js files inside of the static directory, then reference them in the layout.

I've been using the moonrocks project as an example lapis site, you can see it being done here:

https://github.com/leafo/moonrocks-site/blob/master/views/layout.moon#L32

I think writing an example blog is a good idea though. I try setting that up.

from lapis.

jlebrech avatar jlebrech commented on May 24, 2024

is regexing the extensions to use the static folder also possible?

from lapis.

leafo avatar leafo commented on May 24, 2024

@jlebrech give me an example. Do you mean only allowing some files in the static folder to be accessible or making it so files outside of static are available with a /static/ url?

from lapis.

jlebrech avatar jlebrech commented on May 24, 2024

You could make /(jpg|gif|png|js|css) use /static as a rule.
On May 4, 2013 5:27 PM, "leaf" [email protected] wrote:

@jlebrech https://github.com/jlebrech give me an example. Do you mean
only allowing some files in the static folder to be accessible or making it
so files outside of static are available with a /static/ url?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-17436966
.

from lapis.

jlebrech avatar jlebrech commented on May 24, 2024

What's great about the framework is that routes are just nginx rules
On May 4, 2013 5:41 PM, "Joe Le Brech" [email protected] wrote:

You could make /(jpg|gif|png|js|css) use /static as a rule.
On May 4, 2013 5:27 PM, "leaf" [email protected] wrote:

@jlebrech https://github.com/jlebrech give me an example. Do you mean
only allowing some files in the static folder to be accessible or making it
so files outside of static are available with a /static/ url?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-17436966
.

from lapis.

xigit avatar xigit commented on May 24, 2024

Great,
Thanks for your help leafo

from lapis.

Related Issues (20)

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.