On Thu, May 16, 2013 at 6:28 AM, Bhushan N.N <[email protected]> wrote:

> Hi Barry,
>
> Thanks for your response.
>
> I read the "Compiling CSS and Javascript" section and I know they have a
> make file. But I am interested in knowing how they save the values to the
> bootstrap file when a user fill in the customisation form.
>

I believe for most of us, the magic happens when application.js sends an
Ajax POST to: bootstrap.herokuapp.com:

$.ajax({
type: 'POST'
, url: /\?dev/.test(window.location) ? 'http://localhost:3000' : '
http://bootstrap.herokuapp.com'
, dataType: 'jsonpi'
, params: {
js: js
, css: css
, vars: vars
, img: img
}
})


And does it compile every time a user choses to download a customised
> version?
>
Yes, I believe so. The Ajax POST is responded to by a zip file that
contains the customized bootstrap files. Since the mime-type of that
response is zip, browser just chooses to save it as such.


>
> My question may sound very silly for many but I am new to this. I am only
> here to learn :)
>
> Thank you
> Bhushan
>
>
> On Wednesday, 15 May 2013 23:52:18 UTC-6, Barry Carlyon wrote:
>
>> As far as I know it's just a web front end to a LESS compiler
>>
>> You fill in the form and then a background process compiles bootstrap via
>> LESS using your values and then gives you the download
>>
>> Sent from my iPhone
>>
>> On 16 May 2013, at 00:23, "Bhushan N.N" <[email protected]> wrote:
>>
>> Hi All,
>>
>> I am interested in knowing what happens behind the scenes when I click
>> "Customise and Download". Can someone help me out with this?
>>
>> Thank you
>> Bhushan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "twitter-bootstrap" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to twitter-bootst...@**googlegroups.com.
>>
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "twitter-bootstrap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to