Giter Club home page Giter Club logo

holtz's People

Contributors

lvh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pombredanne

holtz's Issues

MIME type resolver

holtz should serve things with the correct MIME type. There should be a way to resolve MIME types given a path (preferably a filepath).

Joiner processor

Programmers want to have lots of different CSS/JS/... files because that makes them easy to work with. Browsers want to see one big file because that's easier/faster to download (although that might have caching consequences).

\.*\.css(+.*\.css)*\: Join() | Minify()

Basically this means that a request for admin.css+base.css would take admin.css and base.css, merge them

This might be a problem if any particular part of the pipeline insists that a file actually exists before it can be served. Also, processors only see the previous producer which kind of sucks. I suppose we could mandate that something like Join is the first in the chain. Otherwise we could make it a fundamental feature or something.

Note that there's other tickets that want this behavior too: #10.

Coffeescript processor

It would be cool if we a request for foo.js would look up foo.cs and serve that, or something. Content type negotiation with browsers is too hard.

holtz.js automatic reloading feature

holtz should recognize whenever any of the assets it serves changes (note that this may also be because of a change in a different file; eg css or less imports). Once it detects such a change, it should inform whatever browser is looking at that page of the change, so that the browser can update the page.

Ideally this would be implemented using a bookmarklet.

Python 2.6 compatibility

Python 2.5 incompatibility might not be very important, but we really ought to support 2.6. Recently, tox support was added so verifying that it doesn't work is easy.

Almost all of the exceptions are this one:

exceptions.ValueError: zero length field name in format

So, basically, I think compatibility will be ensured if we just replace a bunch of {} with {0}.

Debugging directory lister

Similar to twisted.web.woven's directory lister, but with special holtz-specific mechanics, like showing what would be hidden and what wouldn't.

Processor plugin mechanics

Processors should be implemented through twisted.plugin. There should be basic mechanics for that in place.

Part one of this is defining the IProcessor interface. Processors are at the very least consumers (consuming the output of the previous thing in the pipeline; since processors are not chainable right now, this is always a FileProducer). They either are or have a producer.

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.