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

would be nice to have, get,cookies, now in $smarty #19

Open
peon501 opened this issue Apr 7, 2017 · 4 comments
Open

would be nice to have, get,cookies, now in $smarty #19

peon501 opened this issue Apr 7, 2017 · 4 comments

Comments

@peon501
Copy link

peon501 commented Apr 7, 2017

would be nice to have, get,cookies, now in $smarty

example
{$smarty.get.id}
{$smarty.cookies.user}
{$smarty.now}

@dekyfin
Copy link

dekyfin commented Aug 9, 2017

You could pass those variables when calling fetch

@umakantp
Copy link
Owner

Hi @peon501,

There are browser specific features. While jSmart is not just for browser, but common JS environments also. They won't be helpful in those environments anyway. We are trying to keep jSmart as possible as generic for all kinds of environments.

@hparadiz
Copy link

hparadiz commented Feb 9, 2018

There should be a function like jsmart().loadenv() where we can pass in all the get vars, cookies, etc. That way people could write a plugin for the common nodejs http(s) servers

@peon501
Copy link
Author

peon501 commented Feb 19, 2018

Yes I done prototype for it, but they could implement it easily, but yea :) if No web then no web :D

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

No branches or pull requests

4 participants