Most of the slides I write are rather simple, i.e. just a simple image, a headline and a couple of bullet points, reference to one code sample... for this the whole class/ def content feels a bit like overkill.
I propose that we might add a DSL for these that can be used in these cases.
DSL proposal:
slide 'MySlide' do
headline 'I love DSLs'
end
# equivalent to:
class MySlide < Wingtips::Slide
def content
headline 'I love DSLs'
end
end
Most of the slides I write are rather simple, i.e. just a simple image, a headline and a couple of bullet points, reference to one code sample... for this the whole class/ def content feels a bit like overkill.
I propose that we might add a DSL for these that can be used in these cases.
DSL proposal:
Of course the old style should still always work.
What do you think? :)