On Mon, Jun 6, 2011 at 6:37 PM, Matthieu Tourne <span dir="ltr">&lt;<a href="mailto:matthieu.tourne@gmail.com">matthieu.tourne@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I think I started looking at creating a RewriteOptions object, but got side tracked and this project has been idle for a little while.<div>I just updated it this weekend for the latest mod_pagespeed, and put it out there.<br>

</div></blockquote><div><br></div><div>Cool.  As you get time to push this forward, please don&#39;t hesitate to ask questions. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div><div><div>I like how the instaweb API is designed, and how you provide &quot;backend functionalities&quot; through adapter objects (if I remember correctly). </div><div>With nginx extensive subrequests mechanism, fetching external resources shouldn&#39;t be too difficult.</div>

</div></div></div></blockquote><div><br></div><div>Thanks!  It was a goal up front to make ports like this possible. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div><div><div>This Makefile could definitely help. I was also wondering if there was a python lib that could make sense of Google&#39;s internal build files ?</div></div></div></div></blockquote><div><br></div><div>

I&#39;m not 100% sure -- we are not experts in the .gyp file system ourselves although there is doc here: <a href="http://code.google.com/p/gyp/wiki/InputFormatReference">http://code.google.com/p/gyp/wiki/InputFormatReference</a>.  What problem are you trying to solve? </div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div><div><div>Thank you!</div><div><br></div>

<div>Matthieu.<div><div></div><div class="h5"><br><div><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 3:21 PM, Joshua Marantz <span dir="ltr">&lt;<a href="mailto:jmarantz@google.com" target="_blank">jmarantz@google.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>Out of curiosity, have you defined a mechanism to configure nginx to use any of the predefined filters?  It looks like you were aware of RewriteOptions, which is the API-based equivalent to pagespeed.conf, but you are not using it yet in <a href="https://github.com/mtourne/ngx_instaweb/blob/master/ngx_http_instaweb_module.cpp" target="_blank">https://github.com/mtourne/ngx_instaweb/blob/master/ngx_http_instaweb_module.cpp</a>.<div>





<br></div><div>The next step in your nginx integration looks to be resource-handling and fetching.  Specifically, you need to define a way to fetch external HTTP resources referenced on a page, and a way to handle fetches for rewritten resources.  We can help you if you have any questions feel free to reach out.</div>





</div></div><div><br></div><div>Please also check this out:  </div><div><br></div><div><a href="http://code.google.com/p/modpagespeed/source/browse/trunk/src/net/instaweb/automatic/Makefile" target="_blank">http://code.google.com/p/modpagespeed/source/browse/trunk/src/net/instaweb/automatic/Makefile</a></div>





<div><br></div><div>We&#39;ve been working along the same lines you have:  starting with a mod_pagespeed build, generate a linkable library that has the kernel of functionality needed to integrate mod_pagespeed&#39;s parser &amp; algorithms into a new platform.</div>





<div><br></div><div>-Josh</div><div><br></div>
</blockquote></div><br></div></div></div></div></div></div></div>
</blockquote></div><br>