Rendering a new template


(Bas van Leeuwen) #1

I’m a bit confused how to go about rendering a new handlebar template on a separate route and I don’t think the various excellent plugin tutorials cover my question.

Let’s say I want to render a simple <p>hello {{variable}}</p>, at discourse.example.com/helloworld?variable=world but with the discourse menu on top?

  1. where would I define the route
  2. would I need a controller
  3. what should be in my handlebar file?

Thank you for any pointers you might give me


(Bas van Leeuwen) #2

fyi: I got this figured out a bit :slight_smile:

Enough to know that I’ll need a true Ember dev to turn my PoC of yesterday into something that’ll actually work :smiley: