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
I see no way of preserving server-side includes (SSI). It would be nice if there was a flag (e.g. --preserve-ssi) to tell YUI Compressor to preserve content between tags. Currently it fails with errors when it encounters these in my JavaScript files. Can somebody add this as a new feature?, or provide hints on how I might modify YUI Compressor to accomplish this?
Thanks!,
John Maurer
The text was updated successfully, but these errors were encountered:
Thanks, Joey. Here is a simplified example illustrating a list of users defined: (1.) via inline JavaScript, and (2.) via an external SSI file. Each uses the browser console to dump result for testing.
// Example defining users inline:varusers=[];varaccount='account_a';if(account=='account_a'){users=[{"id": "kfarro","name": "Kyle Farro","account": 1238890},{"id": "tmathis","name": "Tom Mathis","account": 5558743},{"id": "vhampton","name": "Violet Hampton","account": 5573489}];console.info(users);}// Example defining users via external SSI:varusers=[];varaccount='account_b';if(account=='account_b'){<!--#includefile="ssi/account_b.ssi"-->console.info(users);}
This assumes that the file "ssi/account_b.ssi" contains the following JavaScript:
I see no way of preserving server-side includes (SSI). It would be nice if there was a flag (e.g. --preserve-ssi) to tell YUI Compressor to preserve content between tags. Currently it fails with errors when it encounters these in my JavaScript files. Can somebody add this as a new feature?, or provide hints on how I might modify YUI Compressor to accomplish this?
Thanks!,
John Maurer
The text was updated successfully, but these errors were encountered: