
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
docpad-plugin-outputphp
Advanced tools
DocPad plugin that enables php generation (todo: enable docpad server to process php files through child_process.spawn; for now you should symlink the docpad /out dir in an apache folder)
Quick and dirty way to preprocess with anything™ (actually markdown) and (hopfully) still get php back.
This plugin operates on the extensions .html and .htm and outputs .php
,thereby reverting the html entity decoding that the Marked parser did op php tags and its content.
filename.php.html becomes filename.php with php intact.
This will most likely generate a warning (Rendering the extension "html" to "php" on [file] didn't do anything.), this is normal as the php tags are unlikely to be escaped, thus no difference is created.
filename.php.html.md becomes filename.php, with markdown converted into html and php intact. The above warning will still appear if no php tags are present.
I'm sorry to dissapoint you, but it wat this or writing a custom markdown parser. Besides it worked in the particular use case it was developed for, but I decided to share it with you folks :). If you don't need the markdown functionality, you might be better of with this answer.
Some of these issues only apply to unindented php blocks, as seen below.
/out directory accessible (directly or via symlink) through it..php.html in the extension;
DocPad uses the layout extension to determine the final extension of the resource.
layout folder):
ln -s layoutname.html.eco php-layoutname.php.html.eco. Don't forget to select the appropriate layout for your (php) files!removePTags: true
removePTags: false for that particular matchtags. It is this limitation or dozens of errors when using multi line php. However, html tags should appear if you manually encode them (yet another quirk).
Marking up your php code as a markdown code block (thus indenting, e.g. with tabs) will mitigate a lot of issues as Marked leaves code blocks untouched.
I haven't tried it yet, but using docpad-plugin-php in combination with dynamic: true frontmatter,
might do the trick. This way DocPad should be able to serve php
(you still need to have php installed, as DocPad proxies the calls)
.php extensionsYou might be better off looking here: http://stackoverflow.com/questions/23710658/docpad-generate-php-output-file#26706756
docpad install outputphp
There is currently one option:
(boolean) Whether or not to remove <p> and </p> around a php tag.
Note this may remove a desired tag if a php block is used at the begin or ending of a paragraph (see #known_issues).
As with every DocPad plugin, options can be specified like this:
docpadConfig =
# other docpad configuration...
plugins:
outputphp:
# config for this plugin, yay!
removePTags: false
https://trello.com/b/nrsltIsD/docpad-plugin-outputphp
Discover the change history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under:
FAQs
DocPad plugin that enables php generation (todo: enable docpad server to process php files through child_process.spawn; for now you should symlink the docpad /out dir in an apache folder)
The npm package docpad-plugin-outputphp receives a total of 11 weekly downloads. As such, docpad-plugin-outputphp popularity was classified as not popular.
We found that docpad-plugin-outputphp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.