Happy New Year!... and a question about assets ;)

14 views
Skip to first unread message

tonym

unread,
Jan 3, 2013, 5:15:35 PM1/3/13
to hobo...@googlegroups.com
Hi fellow Hobos!  Happy New Year, and thank you for all your help in the past few months.

This might be an easy one, but I'm struggling to find an answer...
There are some pages where I don't want certain javascript libraries and scripts to be loaded.  for example, I have forms that require certain scripts, but they are not needed for the index and show pages. Ditto for scss.

I also have a new project where I want to use jquery on some pages (the forms), but avoid it completely on the index and show pages, and actually use jquery mobile instead.
Any thoughts and ideas on how to do that?

Cheers, Anthony.

Ignacio Huerta

unread,
Jan 5, 2013, 1:33:06 PM1/5/13
to hobo...@googlegroups.com, tonym
Hi,

I think I've done something similar. I needed a different stylesheet for
some pages that are going to be printed.

So I created a file called app/assets/stylesheets/print.scss. I based it
on front.scss but I changed some of the CSS being imported.

After that, in the page I want that file to be used, I customized the
CSS file I wanted:

<stylesheets: replace>
... Call your CSS here ...
</stylesheets>

I suppose the same would work for Javascript. Write if you get stuck :).

Regards,
Ignacio

El 03/01/13 23:15, tonym escribi�:
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/GyAa-vnRLvsJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

--
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
Reply all
Reply to author
Forward
0 new messages