Fluqi was devised with the simple aim of making it easier to integrate
jQuery UI widgets into websites.
Fluqi helps in two ways; Firstly with a widget builder for setting the various
options, and secondly with a .NET API.
The above is fairly self-explantory, the important part from our perspective is the final line, .Render().
At this point Fluqi will output the HTML required to build the Datepicker, like so:
Out of the box Fluqi is set to work with the minimum of fuss.
centre”, don't worry, we're getting to that :).
As well as configuring how the jQuery widgets behave we can also tell Fluqi how
The false flag indicates the document.ready jQuery start-up function should not be added.
Next on the “I'm liking this, but it isn't exactly best practice”
only using a single widget, it can soon become quite large, increasing the download footprint to our users.
One way around this is to use the Builder to configure our widget options
and copy & paste the resulting code (urg!). A better solution is to employ SquishIt
from browser caching. The code snippet above then becomes:
I won't detail SquishIt
minimises the code and writes the result
to an _assets folder. When the page is delivered to the browser the above is replaced with