-
Notifications
You must be signed in to change notification settings - Fork 181
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
getContent() does not process Blade files #172
Comments
There is a conceptual issue and a practical issue that make this complicated:
I'm going to take a look at this on Friday to see if I can come up with a solution. |
Thank you @damiani for your reply. I see the situation. Maybe we can create a special blade directive for Jigsaw that will be the output of
For this example, I named the new directive ---
extends:
web: _layouts.post
amp: _layouts.amp
feed: _partials.feed-item
title: My First Blog Post
date: 2017-03-23
---
@export('content', ['smartypants', 'markdown-plus', 'parse-include'])
This post is *profoundly* interesting.
@include('_partials.image', ['src' => 'https://source.unsplash.com/random', 'alt' => ''])
@endexport Hope it helps. |
Any updates? |
Currently the
$page->getContent()
function only allows markdown files to be rendered.Why?
I've got a content like this:
If you curious about what does the
_partials.image.blade.php
does, it just switching betweenimg
tag andamp-img
tag for amp-html templates.Problems
The problem arise when I want to output the article into feed. When I use
$page->getContent()
, it doesn't render the blade directive.feed.blade.json
Leaving the code like this:
feed.json
Is it possible that blade files also included? So that files like
post.blade.json
orpost.blade.xml
will get the same treatment.Thank you for reading this issue. Hope it helps.
The text was updated successfully, but these errors were encountered: