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
And since It seams that I can only serve one file, index.html and load the other files inside it using ajax, I want to create a single angular app, Because I don't know VueJS nor react and writing too much ajax is messy, Angular is clean, you compile it, all you have is an index.html, perfect to be used in WUY. I have two problems though
I keep reading the templates in the example you've given, some are missing <html> tag, others are missing <body> tag, does wuy auto generate them, or can I use angular? Because if wuy auto generates parts some html tags, I wouldn't be able to use Angular
I need to use the server module right?
The text was updated successfully, but these errors were encountered:
First : wuy doesn't modify your HTML ! The only thing : it will try to inject a <script src="wuy.js"> (the magic) only if you didn't include it.
You said "the templates in the example you've given, some are missing html tag, others are missing body tag" : in many example : I don't respect the html tags : I've just put the minimal ones (don't wanted to overbloat the examples) !
Second : yes ... you could try to use angular. wuy is not affiliated to one js framework. In my examples : I mainly use vuejs, because I'm confident with it. And I use another python lib (vbuild) to package the result in one html. vbuild is not linked with wuy. You can use any other python webpacker.
I've made a lot of angular in the past (1 & >1) : In fact : it depends on how you want to make it.
You use your tool (nodejs) to webpack your html. You put it in the web folder : and wuy just send it back.
You try to override the wuy._render() : to use your tool (or find a python one), to render your angular app in live.
"I need to use the server module right?"
no ... choosing between server or window mode should just depends on your need.
window/app mode : is for making a GUI app (server & client on the same host) ... reusing a chrome in "app mode".
server mode : is for making a web app (server can be on a host, and you can have many clients on other hosts) ... clients can be in any browser.
I read this issue
#3
And since It seams that I can only serve one file, index.html and load the other files inside it using ajax, I want to create a single angular app, Because I don't know VueJS nor react and writing too much ajax is messy, Angular is clean, you compile it, all you have is an index.html, perfect to be used in WUY. I have two problems though
I keep reading the templates in the example you've given, some are missing
<html>
tag, others are missing<body>
tag, does wuy auto generate them, or can I use angular? Because if wuy auto generates parts some html tags, I wouldn't be able to use AngularI need to use the server module right?
The text was updated successfully, but these errors were encountered: