ARTFiddle
New Fiddle
My Fiddles
Tutorial Fiddles
ART Syntax Help
About
Contact
Register
Log in
file1.art
% We can insert code when adapting a file, based on the breakpoints in the file % Matching of inserts to breakpoints happen by the break name. #adapt: "file2.art" #insert "breakA" +++++++++++++++++++++++ INSERT CODE +++++++++++++++++++++++ #endinsert #endadapt
file2.art
This is "file2.art" content START #break "breakA" This is "file2.art" content END % Breaks can have default content % If we insert in "BreakB" we will not see the default content of the breakpoint. % We can use #insert-after and #insert-before commands if we want to keep the default content. % Modify this code to see the outcome. #break: "breakB" Default Content of "breakB" #endbreak
file3.art
% Note: The insert command will insert in every occurance of the same breakname (can be multiple) along adapt-links. % The insert commands with the same name are getting concatenated along adapt-links.
output
This is "file2.art" content START +++++++++++++++++++++++ INSERT CODE +++++++++++++++++++++++ This is "file2.art" content END Default Content of "breakB"