[IPOL dev-users] Added support for static content in demos
Miguel Colom
colom at cmla.ens-cachan.fr
Mon Mar 24 14:07:50 CET 2014
Dear all,
today I've added the support to have static files in our demos.
In general, we want all demos to be as simple and as standard as possible.
However, some demos have to absolutely need to use external javascript
scripts or special images. Normally, only articles which belong to an
special issue.
In that cases, we saw that the demo editors chose to put the needed
files in dev.ipol.im and to link them from their demos. But this
solution is not acceptable, since the external file is absolutely out
of the control of IPOL and may disappear at any time.
Thus, only when it's absolutely need, now we have the possibility to
put those files in "template/static" and they can be linked with the
http://demo.ipol.im/demo/xxx/static/file URL pattern.
For example:
http://demo.ipol.im/demo/74/static/jsc3d.js
Of course, this must NOT be used to enrich the HTML pages or to add
fancy functionalities to the demos. It's only for very special cases
for which the demos won't work without.
Best,
Miguel
More information about the dev-users
mailing list