Giter Club home page Giter Club logo

Comments (2)

frederikheld avatar frederikheld commented on June 3, 2024

Problem

This will cross the current implementation.

Current implementation

Generater generates header and footer parts around the rendered markuo. It defines the doctype and adds dynamic contents. Right now the only dynamic contents are the css and js files that can be given with the render options. But there are plans to generate a title for the card website from the title field in card.json.

Using templates

This would make the users more flexible regarding what they want to add to the page. It would give them the freedom to define their own doctype and meta data. Stylesheets and css could be linked directly which is no big difference to the current implementation (usability wise) but it would make templates mandatory.

Dynamically rendered stylesheets and stuff like title tag will be difficult though. We would still need to render them into the template which would require template tags. And the user shouldn't forget to put them into the template, otherwise the map will not be rendered correctly.

How to deal with CSS that is used to display the map?

I'm still not sure how to treat the css that is needed to display the map and parts of it are generated dynamically (the releases feature). Thus there can't be a map without this css. So the user shouldn't have freedom to just remove it.

But on the other hand we have to allow the user to modify the css.

Possible solution

Make the css for the map mandatory and render it directly into the map? But allow the users to overrule it with their own stylesheet. How does the order of the stylesheets need to be to allow this?

from usm.io.

frederikheld avatar frederikheld commented on June 3, 2024

Implemented with #30.

from usm.io.

Related Issues (19)

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.