Giter Site home page Giter Site logo

mdss's People

Contributors

joesingo avatar

Watchers

 avatar  avatar

mdss's Issues

Export static files

Export static files from content and template directories

Use static_filetypes site config option to determine what is a static file

Include default template(s) in package

Create a very generic base template and associated static files (css, images)

Install as package data, and change template loading to:

  • look in each dir in templates_path in order
  • look in package

See if there exists a way of combining loading methods in jinja. If not, create a custom loader called something like AggregateLoader that aggregates templates found via different methods

Include external yaml file in context

To allow re-use of context variables on different pages, allow a YAML file to be included.

Re-using variables was useful for maths notes -- can specify extra stylesheets, js for MathJax in one place and re-use on each page

Don't show python traceback for expected errors

e.g. raising invalid page error, no content error etc.

Instead create MdssException base exception that others can inherit from -- then wrap command line script as

try:
    # stuff
except MdssException as ex:
    parser.error(ex)

or similar

Implement macros

Implement macros that replace

<foo arg="val">stuff</stuff>

to

foo("stuff", arg="val")

A useful built in would be to get path to static file when exported

Create example 'theme'

create and document a simple template and stylesheet in a separate repository (probably just joesingo.co.uk theme)

Document how to use external template themes in mdss readme.

this will keep core mdss and theming separated, and simplifies template loading

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.