I'm hacking the core to permit staticmatic to work with different css
and javascript folders and with shtml extension. I just need some
help. How can I programmatically find out which command has been run
-- preview or build?
> I'm hacking the core to permit staticmatic to work with different css
> and javascript folders and with shtml extension. I just need some
> help. How can I programmatically find out which command has been run
> -- preview or build?
Sucks no one has piped up and helped out. I too would like to relocate
the image and javascripts folders. I tend to want to clear out the
site directory to create a new clean build, but having the images and
js in there makes that a more manual process.
On 27 Oct, 19:13, picardo <spockspla...@gmail.com> wrote:
> On Oct 27, 7:38 pm, picardo <spockspla...@gmail.com> wrote:
> > Hey guys,
> > I'm hacking the core to permit staticmatic to work with different css
> > and javascript folders and with shtml extension. I just need some
> > help. How can I programmatically find out which command has been run
> > -- preview or build?
I managed to hack the core sufficiently to make it work. Most of the
action is happening in build.rb, in the lib\staticmatic\mixins
directory. There was also some hacking in render.rb in the same
directory. In the directory above that, there is a file called
helpers.rb, and that is where the stylesheet and javascript helpers
have their directories hardcoded. So I had to change all those things
to make it work with my custom js and css directories. Too bad that I
couldn't create a patch to share with everyone because the program's
execution flow confused me, and my objects kept getting unset before I
had a chance to use them. But if you have any questions, you can ask
me.
Volkan
On Oct 30, 11:55 am, Adam Stacoviak <a...@gethandcrafted.com> wrote:
> Sucks no one has piped up and helped out. I too would like to relocate
> the image and javascripts folders. I tend to want to clear out the
> site directory to create a new clean build, but having the images and
> js in there makes that a more manual process.
> On 27 Oct, 19:13, picardo <spockspla...@gmail.com> wrote:
> > Specifically I'm trying to determine that from this method
> > On Oct 27, 7:38 pm, picardo <spockspla...@gmail.com> wrote:
> > > Hey guys,
> > > I'm hacking the core to permit staticmatic to work with different css
> > > and javascript folders and with shtml extension. I just need some
> > > help. How can I programmatically find out which command has been run
> > > -- preview or build?