GithubHelp home page GithubHelp logo

If tag is not specified.. about mu HOT 5 OPEN

raycmorgan avatar raycmorgan commented on May 3, 2024
If tag is not specified..

from mu.

Comments (5)

raycmorgan avatar raycmorgan commented on May 3, 2024

Actually, it should just be printing nothing when it encounters that tag. I will look into this.

from mu.

tamsler avatar tamsler commented on May 3, 2024

Would it make sense to not touch the {{}} if the view doesn't define the tag for it?

e.g.

  • Hello {{foo}}, test {{bar}}
  • {foo:'world'}

... would produce: Hello world, test {{bar}}

maybe this behavior could be configured.

from mu.

raycmorgan avatar raycmorgan commented on May 3, 2024

Mustache tags are suppose to render blank if their value is not defined. I
would be open to having a way to override this behavior, but the default
needs to be in line with the Mustache spec as to not be a surprise. It
would also be cool to be able to configure it to throw errors on missing
tags, mainly for development purposes.

On Thu, Jan 10, 2013 at 4:49 PM, Thomas Amsler [email protected]:

Would it make sense to not touch the {{}} if the view doesn't define the
tag for it?

e.g.

  • Hello {{foo}}, test {{bar}}
  • {foo:'world'}

... would produce: Hello world, test {{bar}}

maybe this behavior could be configured.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-12126921.

from mu.

tamsler avatar tamsler commented on May 3, 2024

As a default it make sense. The specific use-case that I have is:

I need to template an HTML file that uses Mustache tags for two purposes:

  1. AngularJS bindings. These should not be touched by the MU process.
  2. Mustache tags that need to be processed for server side data pre-rendering.

A way to overwrite the default behavior would be greatly appreciated.

from mu.

shawnfeldman avatar shawnfeldman commented on May 3, 2024

adding my .02, would be great to have an event that notifies you of missed tags.

from mu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.