You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loaded in JS, is there any way you can pass variables to the partial? This is needed if you have some conditional rendering within the partial, e.g.:
.PCard__expand
- if label
.PCard__label = label
The text was updated successfully, but these errors were encountered:
I guess maybe there's a slimrb compiler that works in the browser that could be used...
however without that, I don't know how it could be done .... currently the slim is compiled server-side before the website is served ... and since we cannot pass variables in require calls (webpack requires them to be 'statically analyzable') I'm not sure how we would pass that info over to webpack.
When loaded in JS, is there any way you can pass variables to the partial? This is needed if you have some conditional rendering within the partial, e.g.:
The text was updated successfully, but these errors were encountered: