swup / route-name-plugin Goto Github PK
View Code? Open in Web Editor NEWA swup plugin for named routes and route-based animation 🧭
Home Page: https://swup.js.org/plugins/route-name-plugin
License: MIT License
A swup plugin for named routes and route-based animation 🧭
Home Page: https://swup.js.org/plugins/route-name-plugin
License: MIT License
Similar to the JS Plugin, allow passing raw regexes instead of path-to-regexp-style path strings.
Hi @gmrchk hoping you can help me.
I'm using wordpress.
My URL structure is :
http://localhost:8888/cdw/work/telesign/
http://localhost:8888/cdw/work/foo/
http://localhost:8888/cdw/work/bar/
http://localhost:8888/cdw/work/etc/
I just want to assign the route name "work" to any URL containing work.
None of these are working though:
routes: [
{ name: 'work', path: '/work/:slug' },
]
not working:
routes: [
{ name: 'work', path: '/work/(.*)' },
]
Please help! thanks
I'm not using a bundler in my project and am currenlty trying to upgrade Swup form v2 to v3. I need to use the RouteNamePlugin but including the CDN link <script src="https://unpkg.com/@swup/route-name-plugin@2"></script>
results in js errors.
Uncaught ReferenceError: exports is not defined`
Uncaught TypeError: SwupRouteNamePlugin is not a constructor
Looking at the source of the CDN link, it doesnt appear to be a minified version and is still reliant on imports.
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.