On Fri, Sep 11, 2015 at 3:49 PM, Alexandre Bergel <[email protected]> wrote:
> Hi Cyril, > > I use Pillar for AgileVisualization. One problem I have is that the book > contains many code snippets. How can I run all the code snippet in order to > spot error? Is there an easy way for that? > > Alexandre This probably doesn't apply since you have your scripts directly in the pillar files... but for the Layout chapter scripts I've used this (It goes through all "Layout/figures/*.st" files, compiles them and executes them.) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |root scripts| root := '/home/peter/prog/agilevisualization/book-skeleton' asFileReference. scripts := (root / 'Layout' / 'figures') children select: [ :each | each name endsWith: '.st' ]. scripts do: [ :each | Transcript logCr: each name. nil class compiler source: each contents; evaluate ]. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter
