Skip to content

Commit

Permalink
fix: json is not updt when abe attribut inside bloc each has reload=true
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Nov 8, 2016
1 parent f64c6ed commit fee529b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cms/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export default class Page {
// HOOKS beforePageJson
json = abeExtend.hooks.instance.trigger('beforePageJson', json)

abeEngine.instance.content = json

if(typeof Handlebars.templates[templateId] !== 'undefined' &&
Handlebars.templates[templateId] !== null &&
config.files.templates.precompile
Expand All @@ -45,8 +47,6 @@ export default class Page {
this.template = template
this.HbsTemplatePath = path.join(config.root, config.templates.url, 'hbs/'+templateId+'.hbs')

abeEngine.instance.content = json

// This pattern finds all abe tags which are not enclosed in a html tag attribute
// it finds this one: <title>{{abe type='text' key='meta_title' desc='Meta title' tab='Meta' order='4000'}}</title>
// it excludes this one: <meta name="description" content='{{abe type="text" key="meta_description" desc="Meta description" tab="Meta" order="4100"}}"/>
Expand Down

0 comments on commit fee529b

Please sign in to comment.