Apologies if this is in the wrong section. I couldn’t start a new topic in Plugins or Howto.
I’m currently trying my hand at a new (simple) plugin.
A folder of images will be ‘globbed’ at server startup and an array of filenames will be generated.
The user will then be able to see this list via a combo-box in preferences and then select whichever one they like. the resulting image will then be displayed on the user-card/profile.
However, I’m really stumped. passing the array from the server to the client is where I’m getting stuck. There seems to be a rather large gulf between @eviltrout 's great beginners guides and tackling Ember proper.
I’m pretty sure I need to read the folder contents in plugin.rb and init the array. do I pass the variable with an initializer? Do I need a controller? should I reopen the Preferences Controller and add the variable there? I’ve downloaded a few Discourse plugins to see how other people do it, but I feel that they’re probably way more advanced than what I need to do.
Can anyone give me any pointers or a good general Ember guide?