We've been using @include to include css and external jquery plugins for our extension. We also load the html template for our extension through appAPI.request.get. The problem with this is that it requires strict version control of the included files on our server.
A couple weeks ago, this happened: We made a quick feature addition that required both changes to the extension code and the template. We uploaded the template and pushed changes to the extension code simultaneously. The problem is that the extension takes somewhere between several hours and a day to update on the user's browser. In the meantime, the template had changed, so users "saw" the new feature, but it did not work properly since there was no javascript code to handle the new feature. The (temporary) solution was to have a condition in the template that displayed the new feature only if some variable was set in the new extension code.
This solution will break if changes to the templates are more complex. We have version control setup on our server (so that extension version 0.2 points to included files in a directory 0_2). But this version control is a pain, especially for minor releases (like bug fixes).
I suggest that there be a way to ship arbitrary files with the extension. This way, we could make changes to the templates, css, and other js code and not have a headache dealing with version control. And this way, any changes to the included files will only be revealed when the extension is updated.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
EMPLOYEE
I’m
confident
Matt,
There are some disadvantages in using @includes in general, and also in specific to your issue with versioning.
We are looking at solutions to bundle additional files and resources with-in the extensions themselves.
Thanks for pointing this fact out for us. -
-
Thanks for the reply Shmueli :) Having taken a glance at other extensions that do not use CR, they all include numerous files, like images, js, css, etc. It would seem natural to be able to do this.
-
-
You are right Matt.
We are currently working on this solution. I hope we can introduce this soon enough :) -
-
-
-
Hi guys,
I'm wondering if there is an ETA on this feature? I have to admit version control is certainly a headache for us, especially as things get more complicated.
Matt -
-
EMPLOYEE
I’m
amused
Hey Matt.
Sorry, but I don't have an exact ETA for you on this.
But, we will soon publish in our blog a method implemented by one of our users to make this kind of version control, until Crossrider will introduce its own built-in solution.
Will update this thread once the blog post will be published. -
Loading Profile...




EMPLOYEE
