<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 18, 2017 at 10:02 AM, Thomas Brodt <span dir="ltr"><<a href="mailto:thomas.brodt.lists@porabo.ch" target="_blank">thomas.brodt.lists@porabo.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>There is <br>
    </p>
    <p>WAFileMetadataLibrary recursivelyAddAllFilesIn: aPathString <br>
    </p>
    which imports a directory structure. Invoke that from your library
    class. Have you tried that?<br>
    <br></div></blockquote><div><br></div><div>Thanks!!!!!!</div><div>That was exactly what I was looing for!.</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 text="#000000" bgcolor="#FFFFFF">
    HTH <br>
    Thomas<div><div class="h5"><br>
    <br>
    <div class="m_7844989043039519430moz-cite-prefix">Am 18.08.2017 um 14:24 schrieb Mariano
      Martinez Peck:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi guys,
        <div><br>
        </div>
        <div>I see some libraries using WAFileMetadataLibrary
          subclasses. For example, Code Mirror. I have copied it's
          design, but have to manually create all the intermediate
          methods such as:</div>
        <div><br>
        </div>
        <div>
          <div>themesdarkCss</div>
          <div><span style="white-space:pre-wrap">        </span>^
            WAFileLibraryResource</div>
          <div><span style="white-space:pre-wrap">                </span>filepath:
            'themes/dark.css'</div>
          <div><span style="white-space:pre-wrap">                </span>mimeType:
            (WAMimeType main: 'text' sub: 'css')</div>
          <div><span style="white-space:pre-wrap">                </span>cacheDuration:
            (Duration days: 0 hours: 0 minutes: 30 seconds: 0)</div>
          <div><span style="white-space:pre-wrap">                </span>contents:
            (GRDelayedSend receiver: self selector:
            #themedarkCssContent)</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Aside from that, I also must keep a #fill kind of class
            side method where I autogenerate the contents for each
            file...something like this:</div>
          <div><br>
          </div>
          <div>
            <div>themes := basePath , 'themes/'.</div>
            <div>self faAddFileAt:  themes, 'dark.css' selector: (#theme
              , #darkCssContent) asSymbol.</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>So....it's really a pain when I have to wrap a big
            library that has many images, javascript and css files split
            across different directories etc. </div>
          <div><br>
          </div>
          <div>Is there a way to autogenerate this WAFileMetadataLibrary
            subclass with all methods created? Something like:</div>
          <div><br>
          </div>
          <div>WAFileMetadataLibrary autogenerateFrom:
            ''/Users/mariano/myLibrary/' into: MyLibraryFilelibrary.<br>
          </div>
          <div><br>
          </div>
          <div>Thanks in advance, </div>
          <div><br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div class="m_7844989043039519430gmail_signature">Mariano<br>
            <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.<wbr>com</a><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_7844989043039519430mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
seaside mailing list
<a class="m_7844989043039519430moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<wbr>squeakfoundation.org</a>
<a class="m_7844989043039519430moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>