You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think we should be using sub templates in the dioxus-template repo because we want to support multiple platforms at once in the future
But it is fine for now
When I opened #26 and created #27 there were no subtemplates and dx didn't support it until recently (DioxusLabs/dioxus#1872). But the default subtemplate (with --yes) can't be selected yet (cargo-generate/cargo-generate#1181). I don't know about #26, but #27 is now useless, and it looks like I can remove it. Another (small) problem is that LiveView's template name should be changed (small breaking change for those that already use dx new --subtemplate or cargo-generate).
One (and only?) noticeable disadvantage of not having subtemlates is that this significantly increases the number of conditions in files (and to fix #26 the way conditions are inserted in #27 isn't very nice, but manageable).
@ealmloff once said:
When I opened #26 and created #27 there were no subtemplates and
dx
didn't support it until recently (DioxusLabs/dioxus#1872). But the default subtemplate (with--yes
) can't be selected yet (cargo-generate/cargo-generate#1181). I don't know about #26, but #27 is now useless, and it looks like I can remove it. Another (small) problem is that LiveView's template name should be changed (small breaking change for those that already usedx new --subtemplate
orcargo-generate
).One (and only?) noticeable disadvantage of not having subtemlates is that this significantly increases the number of conditions in files (and to fix #26 the way conditions are inserted in #27 isn't very nice, but manageable).
Related: #9.
The text was updated successfully, but these errors were encountered: