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

Inculde or render template part support? #8

Open
mentorkadriu opened this issue Aug 25, 2014 · 1 comment
Open

Inculde or render template part support? #8

mentorkadriu opened this issue Aug 25, 2014 · 1 comment

Comments

@mentorkadriu
Copy link

Hello! I'm currently working on a project and I have included also gulp-ruby-haml , but I'm having difficulties to add page templates like header.haml to the index.haml. So, I wanted to know if is this possible or not.
This form of adding new templates is not working = render :template => "header"

@beefchimi
Copy link

@mentorkadriu I have been using:

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

as my way of including partials, which is how you would do it without rails. If you are using rails and your original attempt does not work, that probably is a bug...

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

No branches or pull requests

3 participants