jsmart icon indicating copy to clipboard operation
jsmart copied to clipboard

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

Open peon501 opened this issue 8 years ago • 4 comments

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

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

peon501 avatar Apr 07 '17 08:04 peon501

You could pass those variables when calling fetch

dekyfin avatar Aug 09 '17 17:08 dekyfin

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.

umakantp avatar Aug 11 '17 14:08 umakantp

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

hparadiz avatar Feb 09 '18 01:02 hparadiz

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

peon501 avatar Feb 19 '18 12:02 peon501