kulfonjs / kulfon

:japanese_ogre: :frog: JavaScript static site generator with Org Mode & Markdown support (α) :boom:
https://kulfon.org
Other
118 stars 4 forks source link

Error While including PHP code in markdown #76

Open bosunski opened 6 years ago

bosunski commented 6 years ago

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 commented 6 years ago

@bosunski could you share a longer snippet.?

bosunski commented 6 years ago
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 commented 6 years ago

@zaiste ?

joharzmn commented 4 years ago

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