Hi,
reading about future extension system of chromium I think we should use JSON manifest in our plugins.
For more info take a look here:
http://dev.chromium....ions/manifest-formatChromium is going to use manifest in a separate file so I woul like to discuss here if it is reasonable to have manifest in a separate file or not.
Here is my thinking:
* From the coding perspective it would be good to have one file scripts only (so to have in the same file manifest + code)
** Then there must be a clear distinction between manifest and the code so we would be able to match manifest inside a string
* Manifest in a separate file would be easier to implement but would cause 2 file scripts which is unpreferable
* Now the situation is chaotic because there is no Manifest and for fssc purposes the description and name is retrieved by loading entire string and regex matching of the info. This might bring future incompabilities.
So if we did:
plugins["name"]{
manifest:{
displayName : "Test",
description: "description manifest: {} function() and other dangerous stuff",
icon: variable + "string.ico";
Author: "String"
}
}
we probably would be able to write a regex to match the manifest object and then to evaluate it.
Another idea might be to use file description system (right click on JS file). But I am not familiar with it so I do not know how safe it would be
Any ideas are welcome