Giter Club home page Giter Club logo

dds's People

Watchers

 avatar

dds's Issues

Default Templates

  • Template for folders with no index
  • Template for rendered markdown files

Jinja file rendering

The server should be able to serve Jinja HTML templates just like plain HTML, Markdown, etc. Populate fields to render Jinja files with JSON, Python, etc.

Path handling

Path Rules:

  1. / is equivalent to {public_dir}/index.html
  2. /{subdir} and /{subdir}/ are equivalent to {public_dir}/{subdir}/index.html
  3. (2) can be repeated recursively.

File Rules:
In any directory, the index.html file will be produced in the priority of:

  1. If there is an actual index.html file, that's served.
  2. If there is no index.html file, the default template is rendered and served.

Docs

At least usage docs. Stuff that answers the questions:

  • How should I handle paths inside of my directories? (E.g. each directory is a separate and distinct output of Sphinx).
  • How do I specify layouts? Styles? Static files?

Tests

Build up a testing public_dir, use Travis CI to spin up the server and then CURL against it or something to test that everything works.

Markdown support

Anywhere an HTML file could be served (including index.html in any directory), it should be possible to use a similarly named .md file and render it into HTML.

  • Maybe render it according to some Jinja template?
    This could be done with priority in the specific directory, then a site-wide default as well.
  • Maybe make a pre-processor pipeline to handle other filetypes (EJS, Jinja, etc.)

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.