RejectedSoftware Forums

Sign up

diet-ng :javascript block variable (not) substituting

I've got

:javascript

$(function(){
    $('#dg').edatagrid({
        url:        'get_users',
        queryParams: { id: #{key} }
        });
    });

and as far as I can tell, #{key} is not being substituted, though it does if it's not in the :javascript block. From the documentation, I think this should work. Is there a different syntax or other way to accomplish this?

Thanks.

Re: diet-ng :javascript block variable (not) substituting

I found better search words and this has been answered many times. Sorry for the additional noise.
https://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/30327/