I am a newcomer and need to use scripts to handle some dynamic rendering issues related to templates in order to handle a book. I have the following questions:
1. I have many chapters, each of which may have different module compositions. When rendering, I may need to combine some of these modules into chapter one. Then select one part and combine it into chapter two. The modules in each chapter are different. How should I set up my modules and use programs to dynamically control them?
2. My content is uncertain in length, some may be very short, while others may be very long. For example, in my template, there may be a placeholder on a certain page, but the actual length of the article I insert may be 5-10 pages. In this case, how should I set it to ensure that the rendered result is 5-10 pages instead of only 1 page. Does the program automatically add pages?
Thank you very much!