Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Generator Express without template engine? #174

Closed
THCloud opened this issue Apr 14, 2016 · 6 comments
Closed

Generator Express without template engine? #174

THCloud opened this issue Apr 14, 2016 · 6 comments

Comments

@THCloud
Copy link

THCloud commented Apr 14, 2016

Hi,
I'm trying to use this generator to do something. But a problem confused me for several days.

Can generator-express provide a new version without template engine?

I wanna use simple HTML files for my angular's route.js, and I don't wanna put these HTML files to
express.static(). That will make me ... uncomfortable.

Any solutions?

@petecoop
Copy link
Owner

This was actually started a while ago and not finished in a PR here: #108. You could take a look there and see how they did it, it'd be great if someone were to pick this up and finish it!

What makes you uncomfortable about putting your HTML in express.static()? It'd need to be publicly available somehow

@THCloud
Copy link
Author

THCloud commented Apr 14, 2016

Hi,
Thanks for your reply
If put HTMLs in express.static(), it means you can visit this HTML by input the file path in browser, isn't it?

@THCloud
Copy link
Author

THCloud commented Apr 14, 2016

I think that's what make me uncomfortable...I think the browser should only show your current state or route, but not your file path, that's why I wanna use angular's route

@THCloud
Copy link
Author

THCloud commented Apr 14, 2016

I got a repo that solved my problem.

@THCloud THCloud closed this as completed Apr 14, 2016
@petecoop
Copy link
Owner

Right but you still need to serve the document so angular can load it?

@wuno
Copy link

wuno commented Nov 12, 2016

@THCloud you said you have a repo that solved the problem? Can you tell us what you did? I would like to serve my index.html without a template engine as well. But I keep getting weird errors like when the page refresh etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants