Boilerplate

Boilerplate tag is used to specify code that needs to be run first, but should not be shown to the user.

This is currently only supported for languages executed in the backend ( ruby, python, bash, java).

Example:

<codeblock language="bash" type="exercise" testMode="fixedInput">
<boilerplate>
mkdir new-folder
cd new-folder
git init
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
</boilerplate>
<code>

</code>

<solution>
git checkout -b "test-branch"
</solution>

</codeblock>

Can't find what you're looking for?