Questions tagged [fabricator]

5 questions
1
vote
0 answers

Use Handlebars JS inside Fabricator JS Project

I would like to use Handlebars JS in my Fabricator JS project. I had already developed the project with handlebars as a stand alone solution and finished it functionally. When I install it in Fabricator I get a blank page and my handlebars {{}}…
D. Kevin
  • 21
  • 4
0
votes
1 answer

rails/rspec: Fabricator - testing associations (ActiveModel::MissingAttributeError)

I am writing tests for my models and came across an error I can't seem to resolve. I'm using rspec and Fabricator. Things work fine when being tested in isolation but when I try to test for associations I get an…
Joanna Gaudyn
  • 597
  • 3
  • 21
0
votes
1 answer

Adding 'controls' to Fabricator 'UI Toolkit'

I'm building a style guide using Fabricator, and the docs seem to indicate that I should be able to add 'controls' to let the users toggle visibility on various sections. By default, Fabricator builds come with 3 main toggles: labels, notes, and…
Bmd
  • 1,308
  • 8
  • 15
0
votes
1 answer

How can I include content of a component in Fabricator Assemble *without* a corresponding attribute, or at block level?

In Fabricator Assemble, I could have a component button.html: {{text}} I can use this with the syntax {{>button text='Home'}}. Notably, I have to specify a name for the "text" attribute. I'm looking to see how I can handle not…
doppelgreener
  • 4,809
  • 10
  • 46
  • 63
-1
votes
1 answer

Partials in sub folders - handlebars (Fabricator)

I am using fabricator https://fbrctr.github.io I have a partial I am trying to include in a template ones on the top level are fine {{> standardbutton }} Nested one do not display {{> buttons/standardbutton }} I could put them all on the top…
TommyD
  • 913
  • 3
  • 17
  • 32