Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

Standard helpers for use outside Ember #433

@timkendrick

Description

@timkendrick

Just wondering if there are any plans to bundle a set of standard HTMLBars helpers (if, each, etc) so that it can be comfortably used outside Ember?

I've been really impressed with using HTMLBars so far, and I'd love it if there were a minimal-but-batteries-included core package for smaller apps that don't justify the whole Ember experience. Are there plans to continue developing HTMLBars as a standalone library with documentation etc (like Handlebars, I guess), or will it eventually just be subsumed into the Ember core?

I'd be happy to help if there's anything I can do to further this – I've tried to extract out a few of the core helpers from Ember's ember-htmlbars package but a) it's hard not to end up yanking out the whole kitchen sink with them, and b) a lot of the behavior seems to be radically different when used outside Ember (e.g. inline if helper within an attribute seems to throw errors, or return "undefined" instead of "", etc), so I'm not sure whether this is the right approach to take. I'd be grateful for any advice as to whether it's better to carry on with this or just to start from scratch and write a whole new set of helpers.

Background: I'm currently working on a backend Node app that allows user-uploaded templates, so Handlebars/Mustache seems like the only safe route. Page content and styling need to be fully user-customizable, so I've hooked up a client-side HTMLBars preview where the user can live-edit colors, fonts etc and have the page instantly rendered exactly like it will on the server. Due to HTMLBars, this now works incredibly smoothly – thanks guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions