Selecting Saas App with client side rendering
creates unecessary code
#1119
Labels
Saas App with client side rendering
creates unecessary code
#1119
Description
When executing
loco new
and choosingWhat would you like to build? · Saas App with client side rendering
, some code only relevant to SSR is created.To Reproduce
loco new
❯ What would you like to build? · Saas App with client side rendering
Expected Behavior
Specifically the following items are created which are not necessary:
impl Hooks for App
section inapp.rs
contains the initializer forViewEngine
, not necessary for CSRinitializers/view_engine.rs
is not needed for CSR, the file and corresponding mod declarations and imports can be removedasset
folder contains subfolder with unnecessary items. All of them can be removed.fluent-templates
andunic-langid
dependency can be removed fromCargo.toml
Environment:
loco 0.13.3
andrustc 1.83.0 (90b35a623 2024-11-26)
stable linux toolchain.Additional Context
Discovered while trying out different CSR UI frameworks
The text was updated successfully, but these errors were encountered: