Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubleQuote: true Not Working on Partials #9

Open
beefchimi opened this issue Sep 4, 2014 · 0 comments
Open

doubleQuote: true Not Working on Partials #9

beefchimi opened this issue Sep 4, 2014 · 0 comments
Labels

Comments

@beefchimi
Copy link

I have a single page site. My index.html is compiled from main.html.haml which is my site template. Within this file, I include several partials like so:

= Haml::Engine.new(File.read('dev/haml/_head.html.haml')).render

When I run:

gulp.task('haml', function() {
    gulp.src(paths.haml.src + 'main.html.haml')
        .pipe(plugins.rubyHaml({doubleQuote: true}))
        .pipe(plugins.rename('index.html'))
        .pipe(gulp.dest('./'));
});

I get an index.html file where only the attributes within main.html.haml are converted to double quotes. All the attributes from the partials remain as single quotes.

Is this expected behaviour? If so, how would I change my task to apply double quotes to partials as well as the main template?

Thanks!

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

No branches or pull requests

2 participants