neocotic/template — Issue #49: Restructure data
Author: neocotic
Created: 2011-11-08 13:03:08+00:00
State: open
Labels: background, javascript, options, shortener, template

After some experimentation with the options page for #47 I realise that the data stored in `localStorage` is messy. Although organised it doesn't look nice and creates restrictions while lifting others. The solution would be to reorganise all the misc entries in to an array of objects which would then be parsed in to JSON, instead of doing this for each entry and then building the objects from these values.

The primary areas that require this rework are templates and URL shorteners (meta/config information). However, this should be done with the greatest care and testing as these are central to the extension and nothing should be overlooked. Consider the reasons that this was not done originally and fix those restrictions another way.

This should be done either before or alongside #48 as that issue will be adding an additional entry for each template.

Ensure that the objects are future-proof and that any new properties can be assigned to them in any future releases.