HTML5 web app: How do I create a dynamic manifest file with drupal? I hope this is the right place to talk about this...

I'm planning to create an HTML5 web application which basically download new contents, something like the financial times app.
I want to use drupal such as base where I can upload contents and the export it such as json view.
In the web app I would like to create a local database where i will add the contents.
To keep it update I will compare the last content creation date in the app with the last content creation date on drupal, if they are not the same it will download the latest contents and add it into the db.
This is "quite simple", let's move to my problem now...
I've got one image per each content and, to see the images offline, I need to add it to the manifest file every time a new content is added.

How can I get this? Or if you think I should use another method, let me know.

Thanks in advance.
images should be attached to content via image field(if not I know another way, just ask), so you can create a new views and fetch only these images

add page display to that views and use it to create manifest, in this way you have dynamic manifest. if you want write it to file, small module is needed.

in this case you need have more than one manifest (multiple manifest), one of them is for your images

steps to create images manifest:


create views to fetch images: named manifest_1
create page display in that views: named page_1
create a small module to create your manifest, dirty sample:

function mymodule_menu() {
  return array(
      'manifest/images' => array(
          'page callback' => 'mymodule_manifest',
          'access arguments' => array('access content'),
          'type' => MENU_CALLBACK,
      )
  );
}

function mymodule_manifest() {
  $images = views_get_view_result('manifest_1', 'page_1');
  //sent header text/manifest
  //output image paths
  die();
}