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

Keep variables after compilation #59

Open
kevin-bog opened this issue Dec 7, 2019 · 3 comments
Open

Keep variables after compilation #59

kevin-bog opened this issue Dec 7, 2019 · 3 comments
Labels

Comments

@kevin-bog
Copy link

kevin-bog commented Dec 7, 2019

Hi, firstly, thanks for your work !

Everything works fine except, I would like to keep my variable {{}} after compilation. Because this is my controller which send data to my template how can i do this ?

Edit;
Look like I couldn't do this. I had to handle this from the server and build one entry by partial ?

Thanks for taking the time

@sagold
Copy link
Owner

sagold commented Dec 7, 2019

Hi.

Can you rephrase your question? What do you mean by "keep the variable {{}}"

  • is it the string within the hbs-template
  • or something wirh the input-data

And besides: Is this a question about handlebars or this plugin? If you have the an example of your input and expected output, i might be able to help.

@kevin-bog
Copy link
Author

Hey,

sorry I meant,

I want to keep the handle bars variables :
<p>{{ firstname }}</p>
after the compilation, because after compilation, my variables are removed:
<p></p>

Look like I made a mistake, and had to handle the rendering all from my serverside, without compiling the file

@lamualfa
Copy link

For me, just add backslash before your variable. Example:

Before compilation:

<p>\{{ firstname }}</p>

After compilation:

<p>{{ firstname }}</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants