Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Templates #58

Open
airtonix opened this issue Nov 1, 2016 · 2 comments
Open

Templates #58

airtonix opened this issue Nov 1, 2016 · 2 comments

Comments

@airtonix
Copy link

airtonix commented Nov 1, 2016

Feature: `html` command

  Background:
    Given a directory with Gherkin source files

  Scenario: Generate HTML specification using a html template 
    When I run `featurebook html --template ./features-template.html`
    Then featurebook should generate output html using that template

  Scenario: Generate HTML specification using conventionally present html template 
    When there is a `<specdir>/.featurebook.tpl.html`
    And I run `featurebook html`
    Then featurebook should generate output html using the conventionally present template
@danielpacak
Copy link
Contributor

danielpacak commented Nov 4, 2016

Hey @airtonix thank you for reporting this. Do you, by any chance, have an idea or preferences how a template will look like? I'm asking because I was thinking about moving CSS (LESS or SASS) to an external module (e.g. featurebook-theme-darkula) so that the featurebook html and featurebook serve will use the same style sheets. Now I have this styling code duplicated in both places. Next step would be to implement this style templating thing but there're different approaches to do that. For example, we can define some LESS or SASS variables that impact look&feel and compile to CSS on the fly. Any thoughts?

@airtonix
Copy link
Author

airtonix commented Nov 5, 2016

We've moved to using wintersmith-gherkin, I imagine you'd want to be doing
something similar as that plugin

On Fri., 4 Nov. 2016, 17:26 Daniel Pacak, notifications@github.com wrote:

Hey @airtonix https://github.com/airtonix thank you for reporting this.
Do you, by any chance, have any idea or preferences how a template will
look like? I'm asking because I was thinking about moving CSS (LESS or
SASS) to an external module (e.g. featurebook-theme-darkula) so that the featurebook
html and featurebook serve will use the same style sheets. Now I have
this styling code duplicated in both places. Next step would be to
implement this style templating thing but there're different approaches to
do that. For example, we can define some LESS or SASS variables that impact
look&feel and compile to CSS on the fly. Any thoughts?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#58 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADvKdW-27Akeu81O1_Nv0z9_lObz6ROks5q6tcOgaJpZM4Kl1aC
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants