High performant and high fidelity previews for css preprocessing frameworks
AssigneeOracle International Corporation
InventorsChristian David Straub, Peter Tehchuan Liu
Life of this patent
Estimating the term…
Abstract
In various embodiments, methods, systems, and non-transitory computer-readable media are disclosed that allow allows developers of user interfaces to see quick and accurate previews after changing content that needs to be processed via a cascading style sheet (CSS) framework such as LESS, SASS, or Trinidad. These frameworks typically take a significant period of time to transform their framework code into CSS.
Claims20
A method comprising:
- receiving, at one or more computer systems, a first change to a portion of source code written in a cascading style sheet (CSS) preprocessor language;
- identifying, with one or more processors associated with the one or more computer systems, a partition associated with the first change, the identified partition selected from a plurality of partitions generated from the source code;
- determining, with the one or more processors associated with the one or more computer systems, whether the identified partition requires processing using a CSS preprocessor;
- generating, with the one or more processors associated with the one or more computer systems, a first result in response to applying the CSS preprocessor to the identified partition with the first change when the identified partition requires processing using the CSS preprocessor;
- and
- generating, with the one or more processors associated with the one or more computer systems, a second result in response to applying one or more operations that do not require the CSS preprocessor to the identified partition with the first change when the identified partition does not require processing using the CSS preprocessor.
A non-transitory computer-readable medium storing a computer program product having a set of instructions which when executed by one or more processors associated with one or more computer systems cause the one or more processors to:
- receive first cascading style sheet (CSS) data generated from source code using a CSS preprocessor;
- style one or more user interface elements using the CSS data;
- receive a change to style information associated with at least one of the one or more user interface elements;
- inject second CSS data generated using the CSS preprocessor into the first CSS data in response to requesting the second CSS data from a service that hosts the CSS preprocessor when an instruction is absent indicating how to apply one or more operations that do not require the CSS preprocessor to a portion of the source code affected by the change;
- and
- inject third CSS data generated by applying one or more operations that do not require the CSS preprocessor to the portion of the source code affected by the change into the first CSS data when the instruction is not absent or in response to receiving the instruction from the service.
A system comprising:
- a hardware processor;
- and
- a memory storing a set of instructions which when executed by the processor cause the processor to:
- receive a first change to a portion of source code written in a cascading style sheet (CSS) preprocessor language;
- identify a partition associated with the first change, the identified partition selected from a plurality of partitions generated from the source code;
- determine whether the identified partition requires processing using a CSS preprocessor;
- generate a first result in response to applying the CSS preprocessor to the identified partition with the first change when the identified partition requires processing using the CSS preprocessor;
- and
- generate a second result in response to applying one or more operations that do not require the CSS preprocessor to the identified partition with the first change when the identified partition does not require processing using the CSS preprocessor.
Dependencies are inferred from the claim text.