mattmanske / slimmer

Middleman Starter Template
MIT License
30 stars 4 forks source link

enable .html pages and layouts #2

Open afknapping opened 10 years ago

afknapping commented 10 years ago

hi there.

really like slimmer!

right now (as far as i got it) .slim is the only accepted format for pages and layouts?

would be nice if we could also use plain .html files when needed for whatever reason (eg following along tutorials and being able to paste in plain html snippets).

cheers fabian

mattmanske commented 10 years ago

Thanks Fabian ~ There should be a way to have the system recognize the .html files; I'm kinda surprised that it isn't working out of the box like that. I'll take a look and see if I need to adjust the Middleman config to recognize that. Should have an adjustment made in the next day or so.

afknapping commented 10 years ago

hmm, i should have read the slim docs before, sorry :/ http://rdoc.info/gems/slim#Inline_html____HTML_style_

afknapping commented 10 years ago

found something related:

i like to keep content apart from structure by rendering markdown-files into the pages (example).

currently i can only render partials in the same language – meaning i can only include a .slim partial in a .slim page.

Update: was wrong, this works as expected. = partial 'partial-test' within index.slim correctly renders file _partial-test.md as markdown.