0

I need "source" with handlebars, I tried {{trailers.youtube.source}} but no response, suggestions?

  "trailers" : { "quicktime" : [  ],
      "youtube" : [ { "name" : "Trailer",
            "size" : "Standard",
            "source" : "vP9QCAcGy7Y",
            "type" : "Trailer"
          } ]
    },
1
  • 1
    {{trailers.youtube[0].source}}? Youtube is an array. disclaimer: I know nothing about handlebars Commented Aug 28, 2014 at 21:06

2 Answers 2

1

Try:

trailers.youtube[0].source

to get the first element from that array.

Sign up to request clarification or add additional context in comments.

Comments

0

The solution is {{trailers.youtube.0.source}}, handlebars can't work with [].

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.