is there a way I can set a variable/ do something (anything??) in javascript jquery, and detect it with template toolkit?
I want to use it as a way to change the content based on if the browser is running javascript.
My code would flow something like:
<scipt type="text/javascript">
variable_name = 1;
</script>
[% IF variable_name == 1 %]
do stuff here, js turned on
[% ELSE %]
//do stuff here, js turned off
[% END %]
when I say anything, I mean is there anything I can do in the JS that template toolkit can pick up? like show/hide a div with JS and detect it with template toolkit?