Add context and variables for the template 'widget.html'

Signed-off-by: Miguel Angel Gordian <miguel.angel@codeandomexico.org>
generate the dataset template dynamically

Signed-off-by: Miguel Angel Gordian <miguel.angel@codeandomexico.org>
Added imports for NotFound exception, NotAuthorized exception and
get_action.
Added c object.
Added snippets to make template more modular
Changes in template to make it more modular
error in jinja tags
erased unused variables
Merge pull request #1 from CodeandoMexico/modular_templates

More modular template that now includes snippets.