I am trying to do a choice provider. which will take a (choice) program with n number of choices
For example :
Lets say wanted to make a coffee have to choices-
1. < light, dark>
2. < with sugar , without sugar>
( i know its a bad example)
Then my program should make four new routes/tabs and should open four tabs having
1. light coffee with sugar..
2. light coffee without sugar...
3 and 4 with dark.
Tabs are considered to show those are four different things that came from single source file (which supposed to be a c program,explained with coffee here)
I know opening a new tab can be done using
button(type="button", onclick="window.open('auth/google', '_blank');")
To sum up all my question is
"Giving a text/program having choices should create and open up all possible choices as new tabs." (1.In a same window, like ext js calender application with day weeks months tabs, but I heard there is no way for that in node.js,correct me if I am wrong. or 2. as Separate window tabs)
P.S: new to node.js no harsh comments please. any link that can infer my doubts appreciated
I dont know if you have an answer to solve your problem, but you can use the npm-open module with node servers. Just a quick runthrough:
command line: npm install open
You can then open 4 different tabs from 4 different html pages that you create dynamically or statically. Make sure you have the port open
var open = require('open');
open('http://localhost:' + port + '/' + option.html , 'browser');
Hope that helps!