# Call a function in data in a template
Since the glass-easel component framework is currently only available for the Skyline rendering engine , these features are also limited by this.
If a field in data is a function, you can call it directly in the template:
Component({
data: {
getDataField() {
return 'someValue'
},
},
})
<view>{{ getDataField() }}</view>
Although this can sometimes be convenient, abuse is still not recommended in practice.
From a maintainability point of view, the content indatashould be strongly related to the data content.If the main purpose of the function is to preprocess the presentation of data, it is recommended to use WXS to inline the function implementation in the template.