Coder Social home page Coder Social logo

Comments (7)

michaeljoser avatar michaeljoser commented on July 30, 2024

I am not sure i understand what you are trying to do. But if you want to load your angularjs views as html file then check this issue:
#13

from angular-client-side-auth.

prashid avatar prashid commented on July 30, 2024

Thanks for the reply. That #13 issue is what I want to achieve. Actually I want all my views as HTML.
You suggested in #13 issue as below

Change the "view engine" setting on line 10 in the server.js file to html instead of jade. Can you suggest me what to do here please?

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Hello prashid!
I found a fairly easy way of having both Jade and HTML side by side. in server.js, just add app.engine('html', require('jade').renderFile); above the app.set('view engine', 'jade'); statement. Then you can create and retrieve html views you put in your views folder. Just make sure that you tack on ".html" to the URL when fetching them.

Let me know how it goes.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Oh, and check out Express' documentation for details on how their view engine system works: http://expressjs.com/api.html#app.engine

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Did you figure this one out prashid? I'll go ahead and close this issue, but feel free to reopen it if you're still having trouble.

from angular-client-side-auth.

jasonswearingen avatar jasonswearingen commented on July 30, 2024

thanks for this info, i'm looking at your great project and this explanation will really help me adapt it for my use!

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Happy to hear that Jason :) Feel free to post an issue if you run into any trouble!

from angular-client-side-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.