Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Page content in Mongo #15

Open
Webdesignwill opened this issue Dec 1, 2014 · 0 comments
Open

Store Page content in Mongo #15

Webdesignwill opened this issue Dec 1, 2014 · 0 comments

Comments

@Webdesignwill
Copy link
Owner

Store the template in one property and map that content to the templates to be resolved on the frontend.

The mongo documents will look something like this :

pageDocument : {
  contentTemplate: "<h1>{{na37hn37a3rhn7a3rhn7a}}</h1><p>{{38ncrw37irgnw37rwngc37}}</p>",
  contentMap : {
    na37hn37a3rhn7a3rhn7a : "Page Title",
    38ncrw37irgnw37rwngc37 : "This is my nice paragraph text"
  }
  other props ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant