Im making a service with cloud functions where I need to store dynamically handlebars templates in a NOSQL database. Ill store each template with in a structure like:
{
id: 'template-345345',
name: 'cool template',
descriptions: 'this is a template for bla bla bla',
templateStr: '<h1></h1>',
templateBucketUrl: 'gs://<your-cloud-storage-bucket>'
}
My question is:
what would be better, to store the template as a string or in a bucket and set the reference in the database? Some pros and cons will be helpful
keep in mind that the template wont be have too many caracters
Aucun commentaire:
Enregistrer un commentaire