![]() src: The only mandatory attribute, it specifies the path of the file to include. ![]() The basic directive has the tag name inline and these are the available attributes: Okay, I want this, tell me moreĭirectives are one line HTML comments with a home made tag inside. If I find an issue with the code, I don't want to be copy-pasting code into the slides again. I want to test the code that I put in my slides, so I write it in proper code files that I then run and test (Yes, I sometimes write tests for the code in my slides). See how the directives stay? You can now run the command again after you change the source files. ```python print ( "This second line, though, is vital for any presentation." ) print ( "This third line should be included too." ) ``` See how your file has been modified in-place, and you now have the lines 2 to 3 of a_file.py included between the directives: -> Then run the tool with your presentation file: deckset-inliner -in-place -backup-ext bak slides.md ![]() Then add an opening inline directive and a closing inline directive to your presentation Markdown file, where you want the content to appear: -> This is a_file.py: print ( "Hello I am a text file, but this line is not interesting." ) print ( "This second line, though, is vital for any presentation." ) print ( "This third line should be included too." ) print ( "But not this fourth one, don't care for this one." ) Then prepare a file from which you want to include some content. Okay how?įirst install the tool: pip install deckset-inliner Include content from other files in your Deckset slides.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |