# Skulpt - Template This is a template for developing interactive Python courses with [LiaScript](https://LiaScript.github.io) and [Skulpt](http://www.skulpt.org). __Try it on LiaScript:__ https://liascript.github.io/course/?https://raw.githubusercontent.com/liaTemplates/skulpt/master/README.md __See the project on Github:__ https://github.com/liaTemplates/skulpt --{{1}}-- There are three ways to use this template. The easiest way is to use the `import` statement and the url of the raw text-file of the master branch or any other branch or version. But you can also copy the required functionionality directly into the header of your Markdown document, see therefor the [last slide](#5). And of course, you could also clone this project and change it, as you wish. {{1}} 1. Load the macros via `import: https://raw.githubusercontent.com/liaTemplates/skulpt/master/README.md` 2. Copy the definitions into your Project 3. Clone this repository on GitHub ## `@Skulpt.eval` --{{0}}-- Add the macro `@Skulpt.eval` to the end of every Python code-block that you want to make executable and editable in LiaScript. The given code gets evaluate by the Skulpt interpreter and the result is shown in a console below. ``` python print "how many hellos should I print" hellos = input() for i in range(int(hellos)): print "Hello World #", i ``` @Skulpt.eval ## `@Skulpt.eval` with HTML --{{0}}-- Adding an additional html-tag with an id-attribute you can also manipulate the DOM. If you add the class `persistent` to your tag, LiaScript will take care of your changes and restore them, if you load reload the section. ``` python import document pre = document.getElementById('edoutput') pre.innerHTML = '''