Plake enables the user to manage segments in one document through its software capabilities.
The software uses a simple grammar that enables you to define sections within a text file and then specify targets that will assemble the desired sections. You can also specify a path where the assembled section will be saved as a new file. Using Plake, developers can maintain a single Plake file with different variations of the same code, which can be easily assembled for different platforms.
For instance, if you have a C++ source file that gets built for both Windows and Linux, you can keep the differences as sections in a single Plake file. When you assemble the .cpp file for each platform, it only contains that platform's code. To create the platform-specific file, you only need to run either of the following commands:
plake file=myfile.plk target=windows_build
plake file=myfile.plk target=linux_build
Plake has two modes:
1. The Top-down/lazy mode, which is the default mode that includes all sections for a given target plus lines from the file that do not have a defined section. The output is assembled top-down, and it's useful when you need small variations of a file to be made and want to keep Plake to a minimum.
2. The Stickler mode, which means that any text not attributed to a named section is ignored, and sections are assembled in the order they are passed into target(). This mode is useful when you have specific ideas about how the output will be assembled and don't want Plake to try and be intelligent about it.
The latest version of the software allows "lazy/top-down" or "stickler" building of targets, which override the default "builder" routine. Plake also checks to see whether targets are up-to-date and does caching, which improves the software's efficiency. Overall, Plake offers a straightforward solution to manage and assemble sectioned files, which is beneficial to software developers who need variations of the same code or content for different targets.
Version 0.01: N/A