A library is only used when and where you call for it while a framework inverts the control of the program allowing less control over the code for the creator. A framework is a collection of libraries.src
Rendering - Gathering data to load to a template it associated with and sending it as an output on the client side.src
Templates - A structure/pattern for writing code
State - A state is a point of event amongst other events within an application.