ExecuteCode

struct defined in module Pollen


			ExecuteCode(; kwargs...) <: Rewriter

A Rewriter that runs all Julia code blocks annotated with a :cell attribute.

Examples


			
			
			
			using
			
			 
			Pollen
			

			
			node
			 
			=
			 
			

	
			Node
			(
			
			:
			codeblock
			,
			 
			
			"""
			

			print("Hi")

			1 + 1

			"""
			,
			 
			
			cell
			 
			=
			 
			
			"
			main
			"
			)

			Node(:codeblock; cell = "main")
└─ "print("Hi")
   1 + 1
   "

			
			
			
			
			Pollen
			.
			

	
			rewritedoc
			(
			

			ExecuteCode
			(
			)
			,
			 
			
			"
			
			"
			,
			 
			node
			)

			Node(:codeblock; cell = "main")
└─ "print("Hi")
   1 + 1
   "
Methods

There are 2 methods for Pollen.ExecuteCode: