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

Error While including PHP code in markdown #76

Open
bosunski opened this issue Sep 12, 2018 · 4 comments
Open

Error While including PHP code in markdown #76

bosunski opened this issue Sep 12, 2018 · 4 comments

Comments

@bosunski
Copy link

I wanted to do something like this in my markdown file i.e use PHP code:

<?php
return [
	//...
	'facebook' => [
			'client_id' => env('FACEBOOK_CLIENT_ID'),
			'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
			'redirect' => env('FACEBOOK_CLIENT_CALLBACK'),
		],
	// ...
];

When I run kulfon build, I get this:

Cannot read property 'buildPlaceholders' of undefined

but when I remove the php and change to another language, say js it works without error.

Is there something I'm doing wrong?

@zaiste
Copy link
Collaborator

zaiste commented Sep 13, 2018

@bosunski could you share a longer snippet.?

@bosunski
Copy link
Author

screenshot 2018-09-17 at 7 31 42 pm

I'm writing that blog post, in the markdown file, This error: Cannot read property 'buildPlaceholders' of undefined is raised (when running kulfon build or kulfon compile) because of that line I marked out, i.e php, if I change that part to js instead of php it works well.

That's what I mean.

Do you understand now?

@bosunski
Copy link
Author

@zaiste ?

@joharzmn
Copy link

I am having this same issue with other languages. like sql

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

No branches or pull requests

3 participants