Giter VIP home page Giter VIP logo

creme's Introduction



creme's People

Contributors

wrapperup avatar

Stargazers

 avatar  avatar

Watchers

 avatar

creme's Issues

Support Tailwind

Having Tailwind support would be nice to have built-in. Leptos and Dioxus have it built-in in their tooling. Perhaps Tailwind's upcoming LightningCSS refactor would make this more trivial.

Runtime CSS compile step

Currently, Creme just serves the CSS as-is, which works great for modern browsers already, so it's a low priority. This would also be a building block feature for supporting Sass and SCSS.

Remove unused files from final build (hard)

Since creme's bundler runs before any of your Rust source code is compiled, it has to copy over all assets, even if they're unused.

We could solve this by bundling the artifact files into a temp directory, and then making use of the asset! macro to copy over only the assets that are called in the source. This probably also doesn't work for rust_embed, since it also runs during this stage. This could affect build times, so this is only going to be for release builds.

Another solution is to basically grep all invocations of creme::asset!() (or asset!() if it's imported in the source). This has other caveats, but it fixes some of the problems in the previous solution.

Add Documentation

All of the documentation exists mostly in the README currently, some of it could live in docs

Embed Static Assets

Basically, copy rust_embed's functionality for release mode. If we can reuse that crate, then perfect.

Extensions / Plugin support

Creme is currently not fairly modular under the hood, but a minor refactor could make it so. This would make it trivial to make extensions to automatically handle bundling htmx, Tailwind, etc. Since the main API is a builder, it be as simple as adding a trait implementation, so for eg.

Creme::new()
    .tailwind()
    .htmx()
    ...

More details are probably needed.

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.