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

Use blaze syntax inside html that is stored in database #133

Closed
NvdB31 opened this issue Oct 7, 2016 · 4 comments
Closed

Use blaze syntax inside html that is stored in database #133

NvdB31 opened this issue Oct 7, 2016 · 4 comments

Comments

@NvdB31
Copy link

NvdB31 commented Oct 7, 2016

Hi guys,

We're using Blaze as part of MeteorJS. And I'm looking for a way to allow my client to update strings/text on our website using some sort of edit-in-place functionality. The Meteor plugins for such a feature already exist, but the thing is: we're using i18n to show translated content.

What would be the best way to allow logged in admin users to change the static strings on the website? I already came up with the idea similar to how most CMS work: store the HTML of editable parts of a page in the db with a Tapi18n collection. But this would only work with content that is exclusively static. But a lot of times we use Blaze syntax inside our page content.

This poses an interesting challenge: would it be possible to have Blaze syntax in HTML that is stored inside db?

@mitar
Copy link
Contributor

mitar commented Oct 7, 2016

I think this could be a major security challenge. Blaze was not really designed to be used on untrusted content.

@mitar
Copy link
Contributor

mitar commented Dec 4, 2016

But yes, having a function which takes a string and compiles it to a Blaze template should probably be provided.

@mitar
Copy link
Contributor

mitar commented Jan 6, 2017

Closing for now. I think another issue could be opened for providing runtime template compilation.

@mitar mitar closed this as completed Jan 6, 2017
@mitar
Copy link
Contributor

mitar commented Jan 6, 2017

And that is probably #21.

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

2 participants