dark-kitt / vite-plugin-twig-loader Goto Github PK
View Code? Open in Web Editor NEWA plugin to load twig files.
License: Creative Commons Attribution Share Alike 4.0 International
A plugin to load twig files.
License: Creative Commons Attribution Share Alike 4.0 International
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.