What does the Jekyll `safe` flag mean?

The Jekyll documentation for creating custom plugins talks about the sign safe. The description that it gives is:

safe . The Boolean flag that tells Jekyll whether this plugin can run safely in an environment where arbitrary code execution is not allowed.

It’s hard for me to understand this explanation. What exactly is meant by "arbitrary code"?

+4
source share
2 answers

For the main plugin (bundled with Jekyll) safe: truebasically means that the plugin will be enabled on Github pages.

, , , - .markdown:

{% execute_shell "ls | wc -l" %}

.. . Github , , - ( ), safe: false

, , , , mr@example.com , - , safe:true Github

+3

, , , ( ), Jekyll , , , , ( , ).

, , , , .

+1

All Articles