Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Freemaker template file restoration method and device, computer equipment and storage medium

A technology for computer equipment and template files, applied in computing, instrumentation, electrical and digital data processing, etc., can solve problems such as ftl file corruption, target keyword cannot be found, fit file corruption, etc., to achieve the effect of quick repair

Pending Publication Date: 2020-05-08
SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Freemaker template file is in ftl (FreeMarkerTemplate Language) format and has a unique ftl syntax, which can be opened and edited by word editing software. Business personnel who are not familiar with the grammar directly use word editing software to open and edit the corresponding ftl file, resulting in ftl files damage
[0003] Specifically, the main reason for the corruption of the ftl file is: when using word to edit ftl, since word is a rich text editor, the focus and defocus operations of the cursor during editing will generate additional blank tags, although such blank tags do not affect the display , but it will cause Freemaker to not find the target keyword when replacing the keyword, which will cause the fit file to be damaged

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Freemaker template file restoration method and device, computer equipment and storage medium
  • Freemaker template file restoration method and device, computer equipment and storage medium
  • Freemaker template file restoration method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0027] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or Presence or addition of multiple o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a Freemaker template file restoration method and device, a computer device and a storage medium. The method comprises the steps of obtaining a damaged ftl file; loading the ftl file into a memory, and searching a target error of the ftl file by utilizing a regular expression; and replacing and modifying the ftl file according to the target error to obtain a repaired ftl file. The method comprises the steps of obtaining a damaged ftl file; loading the ftl file into a memory; searching a target error of the ftl file by utilizing a regular expression; replacing and modifying the ftl file according to the target error to obtain the repaired ftl file; finding out the corresponding target error through the regular expression, replacing the label and the line feed symbolin the target error with the space and replacing the Chinese punctuation symbol with the English punctuation symbol to obtain the repaired ftl file. the damaged ftl file can be quickly repaired conveniently and efficiently by,.

Description

technical field [0001] The present invention relates to the field of file restoration, in particular to a Freemaker template file restoration method, device, computer equipment and storage medium. Background technique [0002] Now there are many functions of contract generation in enterprise services. The technology used by most systems is Freemaker. Freemaker is a template engine, that is, a template-based and data to be changed to generate output text (HTML web pages, emails, configurations, etc.) files, source code, etc.). The Freemaker template file is in ftl (FreeMarkerTemplate Language) format and has a unique ftl syntax, which can be opened and edited by word editing software. Business personnel who are not familiar with the grammar directly use word editing software to open and edit the corresponding ftl file, resulting in ftl files damage. [0003] Specifically, the main reason for the corruption of the ftl file is: when using word to edit ftl, since word is a ric...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/166
Inventor 潘孝刘倍材李柏李如先
Owner SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products