Web Grease (WG.Exe)

The valid operation switches of WG.exe are:
-m : Invokes the minification operation on the file(s).
-v : Runs a validation pass on javascript file(s) and output the results to the console.
-s : Processes css file(s) for images and will attempt to create a image sprite out of them, and create updated copies of the css file(s).
-b : Bundles files together into a single output file.
-a : This switch will rename files based on their content (hash), and generate a lookup xml file for mapping between the original name and new name.
  1. Minimizing a single css file
  2. wg.exe -m -in:.\sample.css -out:.\sample.min.css
  3. Minimizing an entire folder (this will process both css and js files found)
  4. wg.exe -m -in:c:\mystaticfiles -out:c:\minified
  5. Validating javascript (all files in the folder)
  6. wg.exe -v -in:.\myjs\
  7. Bundling javascript files together
  8. wg.exe -b -in:c:\javascript -out:bigjavascriptfile.js

Html5

Visual Studio, Html5 - can go rather green wiggly lines: element 'x' cannot be nested within element 'y'.
I think I must come from ArkNet: <html><body><p>Paragraph</p><p>Hello World</p></body></html>
So if you populate this (<p class="slides">) with OrderedList and UnorderedList containing LineItem, then watch how the jQuery.slideUp("speedWord") handles wrongly nested elements.

The solution is to use <div class="slides"> as has been done above.
Note to prove the above the code has <ol> nested inside <p>. Clicking This Header Does Not Close The Display

  1. Validation (HTML5) Element '<ol>' cannot be nested within element '<p>'
  2. This is the second <li> inside the <ol> nested within the<p>
This Accordian uses a KnockOut! View Model to Bind Javascript (JSON Data File): Northwind (with Parameters) Accordian Display

Html5

Visual Studio, Html5 - can go rather green wiggly lines: element 'x' cannot be nested within element 'y'.
I think I must come from ArkNet: <html><body><p>Paragraph</p><p>Hello World</p></body></html>
So if you populate this (<p class="slides">) with OrderedList and UnorderedList containing LineItem, then watch how the jQuery.slideUp("speedWord") handles wrongly nested elements.
The solution is to use <div class="slides"> as has been done above.
Note to prove the above the code has <ol> nested inside <div>. Clicking This Header Closes The Display
  1. Validation (HTML5) Element '<ol>' cannot be nested within element '<p>'
  2. This is the second <li> inside the <ol> nested within the<p>
This Accordian uses a KnockOut! View Model to Bind Javascript (JSON Data File): Northwind (with Parameters) Accordian Display
Administration
  1. Security
  2. Options
  3. Logout
  4. Documentation
Notice how this sample provides a much more aesthetic rollup, is this due to it being last ? or not <DIVision> with border style wrapped ?. Notice also that <H3> has element style padding from somewhere other than this html page.
Html Model Shape: <aside> {<header> [inject!] Title </header><section class="slides">The Sliding Content.</section>} </aside>

Content

  • New Article
  • Edit Articles
  • Categories
  • Tags
  • Folder

Users

  1. Your Profile
  2. View Users
  3. Add User
  4. Delete User