Code Monkey home page Code Monkey logo

vite-plugin-twig-loader's People

Contributors

dark-kitt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vite-plugin-twig-loader's Issues

Support for includes/embeds

Hi
I've got a working version of a twig loader that supports includes/embeds to multiple levels. HMR detects a change at any level of twig file and only reloads the files that changes instead of a full-reload.
It also changes the storybook functionality to just return a function.

e.g.

import SomeComponent from "./some-file.twig"

import "./some.scss"

export default {
  title: 'Components/SomeComponent,
  tags: ['autodocs'],
  argTypes: {
    title: {control: 'text'},
  },
  component: SomeComponent
};

export const Default = {
  args: {
    title: 'Some title here',
  }
}

I realise this is a bit of a BC break on the current format, but its a bit simpler for those familiar with storybook
I am keen to release it as open source but don't want to compete with your existing loader/namespace.
So I'm wondering if you'd be interested in a new major branch with this change/new functionality. Happy to come on as a co-maintainer to share the workload if you like.

If not, no dramas, I'll release it as a vite-plugin-twig-drupal and make it specific to Drupal's twig functions/filters.

Cheers

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.