for example:
layout.dt

middleframe.dt contains:
extends layout

result.dt contains:
extends middleframe

It is not works for me - its says what middleframe.dt is not found