madoshakalaka / yew-interop Goto Github PK
View Code? Open in Web Editor NEWLoad Javascript and CSS asynchronously in yew
Home Page: https://madoshakalaka.github.io/yew-interop
License: MIT License
Load Javascript and CSS asynchronously in yew
Home Page: https://madoshakalaka.github.io/yew-interop
License: MIT License
especially doc builds, they clutter a lot
<ScriptEffect {script}/>
is not meant to be used with None
.
yew-interop/example/src/main.rs
Lines 21 to 27 in 25ccbc5
can be changed to:
html! {
if let Some(script) = script {
<ScriptEffect {script}/>
<p>{"Now check your console!"}</p>
}else{
<Progress id="blessings-progress" label="blessings.js is loading"/>
}
should search for
// ... on release
comments in rust and # .. on release
in toml and <!-- ... on release -->
in README.mdannotate in the three places accordingly
Currently relative url without a base is not supported, this will panic when the macro tries to parse the url:
declare_resources!{
my_lib
"/my-lib.js"
}
explicitly specify the script type so the macro doesn't try to parse the url:
declare_resources!{
my_lib
js "/my-lib.js"
}
will there be an update for it to work with yew 0.20
?
The script will execute all clippy targets and the integration test and cargo fmt.
And mention it in CONTRIBUTING.md.
Yew has recently updated from 0.19 -> 0.20 and it seems that it was a breaking change for Yew-Interop. Hopefully, this can be adjusted easily :).
should be run as doc tests in CI
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.