Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is a way to do a validation? #15

Open
JManuelMT-zz opened this issue Nov 28, 2017 · 3 comments
Open

there is a way to do a validation? #15

JManuelMT-zz opened this issue Nov 28, 2017 · 3 comments

Comments

@JManuelMT-zz
Copy link

Hello, maybe this is not an issue but I coud not find another place to ask for help, there is a way to add validation depending on a session variable or something like that?
for example:
let color;
if(/* Here a condition like req.session.mycondition * /)
color = 'red'
else
color = 'blue'

module.exports = { color }

Thanks in advance

@davidkpiano
Copy link
Owner

You can do that with normal Sass, no?

@JManuelMT-zz
Copy link
Author

Maybe I am worng but I don´t think so, I mean I need a variable that is on my node session for example
app.get('/',function(req,res){
myvar=req.session.myvar;
}

I understand that maybe this is not directly related with your library (I m not expert on node js) but is the way I'm trying to implementing it, could you help me please?

@davidkpiano
Copy link
Owner

If you make a sample repo with your code, sure.

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

No branches or pull requests

2 participants